@classmethod<EOL><INDENT>def count(cls, where_clause="<STR_LIT>", qb=None):<DEDENT>
if not qb:<EOL><INDENT>qb = QuickBooks()<EOL><DEDENT>if where_clause:<EOL><INDENT>where_clause = "<STR_LIT>" + where_clause<EOL><DEDENT>select = "<STR_LIT>".format(<EOL>cls.qbo_object_name, where_clause)<EOL>json_data = qb.query(select)<EOL>if "<STR_LIT>" in json_data["<STR_LIT>"]:<EOL><INDENT>return json_data["<STR_LIT>"]["<STR_LIT>"]<EOL><DEDENT>else:<EOL><INDENT>return None<EOL><DEDENT>
:param where_clause: QBO SQL where clause (DO NOT include 'WHERE')
:param qb:
:return: Returns database record count