Count of userdata

Hi guys, can you help me please? Im need count the number of userdata. I will be very happy if you help me.
Code(SV):

for k,v in pairs(player.GetAll()) do

	if v:GetNWBool("AlredyTeleport") == true then
                 
	end

end

Im need count players with NWBool(“AlredyTeleport”)

local count = 0
local players = player.GetAll()

for i = 1, #players do
    if players[ i ]:GetNWBool( "AlredyTeleport" ) then
        count = count + 1
    end
end

print( count )
2 Likes

Thank you!