code: def get_num_names( self, include_expired=False ):
          
          cur = self.db.cursor()
          return namedb_get_num_names( cur, self.lastblock, include_expired=include_expired )
docs: Get the number of names that exist.