Appears to return the number of columns in the battleground/field scoreboard, other than the common ones (Killing Blows, Kills, Deaths, Bonus Honour):

local x = GetNumBattlefieldStats();

Parameters Edit

Returns Edit

Integer - Number of columns available for the battleground (2 for Warsong Gulch and Arathi Basin, 7 for Alterac Valley)

WoW API < GetNumBattlefieldStats