code: def get_number_of_rows(dbcon, tablename, uuid=None):
      
      dbcur = dbcon.cursor()
      if check_table_exists(dbcon, tablename):
          if uuid:
              dbcur.execute("SELECT COUNT(*) FROM '{name}' WHERE UUID='{uuid}'".format(name=tablename, uuid=uuid))
          else:
              dbcur.execute("SELECT COUNT(*) FROM '{name}'".format(name=tablename))
          try:
              result = dbcur.fetchone()[0]
          except (TypeError, IndexError) as e:
              logger.error(e)
              result = 0
          dbcur.close()
          return result if isinstance(result, (int, long, float)) else 0
      else:
          return 0
docs: Return the number of rows in a table
      :param dbcon: database connection
      :param tablename: table name
      :return: Boolean