$channelCount
This function returns the total number of channels present in the server.
$channelCount[Channel Type (optional)]
Usage: You can optionally specify a channel type to count only channels of that specific type. Refer to this list for valid channel types.
Parameters:
Channel Type
(optional): The type of channel to count. If omitted, the function will count all channels. Valid types can be found in the Channel Types Reference.
Example:
Counts the number of public threads in the server: