code: def atlasdb_get_zonefiles_missing_count_by_name(name, max_index=None, indexes_exclude=[], con=None, path=None):
      
      with AtlasDBOpen(con=con, path=path) as dbcon:
          sql = 'SELECT COUNT(*) FROM zonefiles WHERE name = ? AND present = 0 {} {};'.format(
                  'AND inv_index <= ?' if max_index is not None else '',
                  'AND inv_index NOT IN ({})'.format(','.join([str(int(i)) for i in indexes_exclude])) if len(indexes_exclude) > 0 else ''
                  )
  
          args = (name,)
          if max_index is not None:
              args += (max_index,)
  
          cur = dbcon.cursor()
          res = atlasdb_query_execute(cur, sql, args)
          for row in res:
              return row['COUNT(*)']
docs: Get the number of missing zone files for a particular name, optionally up to a maximum
      zonefile index and optionally omitting particular zone files in the count.
      Returns an integer