code: def namedb_get_num_history_rows( cur, history_id ):
      
      ret = []
      select_query = "SELECT COUNT(*) FROM history WHERE history_id = ? ORDER BY block_id ASC, vtxindex ASC;"
      args = (history_id,)
  
      count = namedb_select_count_rows( cur, select_query, args )
      return count
docs: Get the history for a name or namespace from the history table.
      Use offset/count if given.