public function getCount($where = '', $variables = null)
    {
        $where = $this->formatWhereClause($where);

        $response = $this->driver->query("select count(*) as numberOfItems from " . $this->getTable() . ' ' . $where . ";", $variables);

        if (!$response->count()) return 0;

        $response = $response->row();

        return intval($response->numberOfItems);
    }
public function getCount($where = '', $variables = null)
    {
        $where = $this->formatWhereClause($where);

        $response = $this->driver->query("select count(*) as numberOfItems from " . $this->getTable() . ' ' . $where . ";", $variables);

        if (!$response->count()) return 0;

        $response = $response->row();

        return intval($response->numberOfItems);
    }
public function getCount ( $ where = '' , $ variables = null ) { $ where = $ this -> formatWhereClause ( $ where ) ; $ response = $ this -> driver -> query ( "select count(*) as numberOfItems from " . $ this -> getTable ( ) . ' ' . $ where . ";" , $ variables ) ; if ( ! $ response -> count ( ) ) return 0 ; $ response = $ response -> row ( ) ; return intval ( $ response -> numberOfItems ) ; }
Return the number of items available in the table

@param string $where
@param string[] $variables
@return integer
Return the number of items available in the table