code: def numRegisteredForRole(event, role):
      '''
      This tag allows one to access the number of registrations
      for any dance role.
      '''
      if not isinstance(event, Event) or not isinstance(role, DanceRole):
          return None
      return event.numRegisteredForRole(rolef numRegisteredForRole(event, role):
      '''
      This tag allows one to access the number of registrations
      for any dance role.
      '''
      if not isinstance(event, Event) or not isinstance(role, DanceRole):
          return None
      return event.numRegisteredForRole(role)
docs: This tag allows one to access the number of registrations
      for any dance role.