ConstCollection::count

Description

public function count(): int

Get the number of items in the collection. Cannot be negative.

Return Values

  • int - Returns the number of items in the collection