Well you meant number or count of players, not amount. Anyway you can get an array of player objects by PlayerAPI::getAll(Level). Call it in a non-static manner. Use LevelAPI::get($name) non-statically to get the level object. Count the elements in the array to vet the number if platers.