Hey,
Unfortunately we aren’t able to give full customization support here in these forums, I would say that based on the snippet above the “$count” that you would be getting there would the number of terms rather than the events associated with those terms.
If, from here you do a “foreach($terms as $term)” and do a new WP_Query for the events associated with each term the query should automatically just pull the upcoming events based on some filters already implemented within the plugin.
Let me know if this helps.
Thanks!