The name of the event to subscribe to.
The callback function to execute when the event is triggered.
An object containing:
count: The number of active subscriptions for the event type.unsubscribe: A function to unsubscribe from the event, which also returns the updated subscription count.
Subscribes to a specific event type with a callback function.