Dev/burgundy/pe950 event counts endpoint

This introduces the new event-counts endpoint. Tests and implementation are "done", but this still needs proper documentation and likely some pre-/post-conditions.