code: def count(cls, where_clause="", qb=None):
          
          if not qb:
              qb = QuickBooks()
  
          if where_clause:
              where_clause = "WHERE " + where_clause
  
          select = "SELECT COUNT(*) FROM {0} {1}".format(
              cls.qbo_object_name, where_clause)
  
          json_data = qb.query(select)
  
          if "totalCount" in json_data["QueryResponse"]:
              return json_data["QueryResponse"]["totalCount"]
          else:
              return None
docs: :param where_clause: QBO SQL where clause (DO NOT include 'WHERE')
          :param qb:
          :return: Returns database record count