count() public method
Counts records in specified collection.
public integer count ( $collectionName, $condition = [], $options = [] ) | ||
---|---|---|
$collectionName | string |
Collection name |
$condition | array |
Filter condition |
$options | array |
List of options in format: optionName => optionValue. |
return | integer |
Records count |
Please login to continue.