Number of views of pages

Is there any plugin or workaround to get or sort pages by the number of times they have been viewed?
I am trying to get a “popular” category in a blog with Grav.


take a look

Documentation says:

The full view count data is dumped as an associative array (i.e., route => count) into the Twig variable viewcounts. To support backwards compatibility, the counts are also still dumped into the config.plugins.count-views.counts namespace, but this is now officially deprecated and will be removed in a future major release.

How can I get in a TWIG template the most viewed page? -maybe it is obvious from the docs but I am quite new to Grav-