code: def count_if(self, data, condition, val, output="number"):
           
          
          if condition == "=":
              count = self._find_equal_to_values(data,val).sum()
          elif condition == ">":
              count = self._find_greater_than_values(data,val).sum()
          elif condition == "<":
              count = self._find_less_than_values(data,val).sum()
          elif condition == ">=":
              count = self._find_greater_than_or_equal_to_values(data,val).sum()
          elif condition == "<=":
              count = self._find_less_than_or_equal_to_values(data,val).sum()
          elif condition == "!=":
              count = self._find_different_from_values(data,val).sum()
          
          if output == "number":
              return count
          elif output == "percent":
              return count/data.shape[0]*1.0*100
  
          return count
docs: Count the number of values that match the condition.
          
          Parameters
          ----------
          data        : pd.DataFrame()
              Input dataframe.
          condition   : str
              Condition to match.
          val         : float
              Value to compare against.
          output      : str
              Sting indicating the output of function (number or percent)
  
          Returns
          -------
          int/float
              Count of values that match the condition (int or float)