ConstCollection::count

Get the number of items in the collection

public function count(): int;

Cannot be negative.

Returns

  • int - Returns the number of items in the collection