public function count()
    {
        $query = clone $this;
        $query->select = 'count(*)';
        return (int)$query->execute()->fetch(PDO::FETCH_NUM)[0];
    }
public function count()
    {
        $query = clone $this;
        $query->select = 'count(*)';
        return (int)$query->execute()->fetch(PDO::FETCH_NUM)[0];
    }
public function count ( ) { $ query = clone $ this ; $ query -> select = 'count(*)' ; return ( int ) $ query -> execute ( ) -> fetch ( PDO :: FETCH_NUM ) [ 0 ] ; }
Returns records count.
Executes separate SQL query to count records.

@return int
Returns records count . Executes separate SQL query to count records .