Player Count Help

I am having trouble getting the amount of players inside a server.
Is there any way to get the amount of players inside a server?
I do not need like if the amount of players is higher then this.

local AmountOfPlayers = #game.Players:GetPlayers()
As easy as that to get the amount of players in a server.

But does it give you a number?

Yes it does give you a number, that’s what the # operator is there for.

I get this attempt to get length of a number value

wait nvm sorry need to type more