public function count($conditions = '', $params = array()){
        return $this->db->builder()->select('COUNT(*)')->from($this->table)->where($conditions, $params)->queryValue();
    }
public function count($conditions = '', $params = array()){
        return $this->db->builder()->select('COUNT(*)')->from($this->table)->where($conditions, $params)->queryValue();
    }
public function count ( $ conditions = '' , $ params = array ( ) ) { return $ this -> db -> builder ( ) -> select ( 'COUNT(*)' ) -> from ( $ this -> table ) -> where ( $ conditions , $ params ) -> queryValue ( ) ; }
Count with conditions

@param string|array $conditions
@param array $params
@return integer
Count with conditions