<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def fetch_num_records(self, table_name, where=None):
 """ Fetch the number of records in a table. :param str table_name: Table name to get number of records. :param where: |arg_select_where| :type where: |arg_where_type| :return: Number of records in the table. |None| if no value matches the conditions, or the table not found in the database. :rtype: int """


        return self.fetch_value(select="COUNT(*)", table_name=table_name, where=where)