function getPlayerCount() { temp.count = 0; for ( pl: allplayers ) temp.count += (! pl.isExternal ); return temp.count; }