protected function columnCountForWhereClause($column)
    {
        if (is_array($this->wheres))
            return count(array_filter($this->wheres, function($where) use($column) {
                return $where['column'] == $column;
            }));
    }
protected function columnCountForWhereClause($column)
    {
        if (is_array($this->wheres))
            return count(array_filter($this->wheres, function($where) use($column) {
                return $where['column'] == $column;
            }));
    }
protected function columnCountForWhereClause ( $ column ) { if ( is_array ( $ this -> wheres ) ) return count ( array_filter ( $ this -> wheres , function ( $ where ) use ( $ column ) { return $ where [ 'column' ] == $ column ; } ) ) ; }
Get the number of occurrences of a column in where clauses.

@param  string $column
@return int
Get the number of occurrences of a column in where clauses .