Returns the number of records.
public count ( string $q = '*', |
||
$q | string | kept to match [[QueryInterface]], its value is ignored. |
$db | the Mongo connection used to execute the query. If this parameter is not given, the `mongodb` application component will be used. | |
return | integer | number of records |