Get amount of currently active users

Is there an easy way for getting the amount of currently active users in Vaadin 15 (with Spring Boot)?

The only way i currently see is creating a custom VaadinServlet which is counting SessionInit and SessionDestroys.

That sounds like the right way to go.