Dynamically count the number of custom post types associated to a custom taxonomy

You have to get them with WP_Query. Creat an array then get the number of posts from found_posts function.