count() public abstract method
Returns the number of records.
| public abstract integer count ( $q = '*', $db = null ) | ||
|---|---|---|
| $q | string | 
 The COUNT expression. Defaults to '*'.  |  
| $db | yii\db\Connection | 
 The database connection used to execute the query. If this parameter is not given, the   |  
| return | integer | 
 Number of records.  |  
Please login to continue.