ConstCollection::count

Get the number of items in the collection

Description

public function count(): int;

Cannot be negative.

Return Values

  • int - Returns the number of items in the collection