tor ships with an integrated feature to do collect (and publish) exit port statistics.
https://www.torproject.org/docs/tor-manual.html.en#ExitPortStatistics It is not stated in the manual entry but it does not include all ports, just the top 10 (including 'other').
Some exits have this enabled and publish their stats via extra-info descriptors which can be downloaded via CollecTor https://metrics.torproject.org/collector.html
I'm not sure but I assume this level of granularity might disappear in a future version of tor or they will stop publishing it via extra-info descriptors (with privcount repacing many of the parts in tor that collect stats)