Get the number of subscriptions for a topic in the event system.
topic
int count(String topic) { return _cache[topic]?.length ?? 0; }