As I explained above, Toolset could count the terms in a Taxonomy view, that returns the terms assigned to the post where the view is displayed.
Using a Raw Loop Output, this value returned (the number of terms) could be used in an HTML conditional.
Let me make an example:
1. Create a View, and choose to query Taxonomy (your taxonomy)
2. In the query filter section select "Taxonomy Term" and "Set by the current post". Save it and proceed to the Loop editor
3. In the Loop editor (just below it) find the "Disable the wrapping DIV around the View" checkbox and check it
==> This is what will make our View return a "raw" loop output
4. In the loop insert nothing (leave it empty), but just before (or after) the <wpv-loop> tag, insert the Count ShortCode of Toolset:
[wpv-found-count]
(https://toolset.com/documentation/user-guides/views-shortcodes/#vf-155378)
==> This will show the total of terms found for the post where the view is inserted.
Now create a small shortcode to ensure the data your view produces, is really just a clean number.
You can add this to the functions.php of your Theme or Toolset Settings Custom Code:
function ensure_numeric_taxonomy_count_of_posts() {
$args = array(
'title' => 'the title of the view'
);
$value = render_view( $args );
return intval($value);
}
add_shortcode('taxonomy-count','ensure_numeric_taxonomy_count_of_posts');
Edit the "the title of the view" adequately to match your view.
Then Register the new shortcode "taxonomy-count" in Toolset > Settings > Front End Content > 3rd Party ShortCodes
This now allows you to insert a HTML Conditional like this on your single posts, or the Content Template with which you display those:
[wpv-conditional if='( "[taxonomy-count]" eq "2")']Notice for 2 Tags on post[/wpv-conditional]
Of course, you can check for greater than (gt) or lower than (lt) and other operators, see https://toolset.com/documentation/user-guides/conditional-html-output-in-views/
Note, the above solution includes a custom code because it's a particular situation, where you use a View just to count amounts of items and even if the View is able to return the loop clean, the amount of items is wrapped in some space because outside of the loop (and raw loop applies only to the loop itself)
I missed that in my first evaluation.
Given we use Custom Code (but a small one) above, the same shortcode could also just use get_the_terms() as I explained before, count() them and return that value.
It would have the same exact effect.
Using a view of course you have many more options fo queries and other kinds of manipulation of the result 🙂
Hope that helps!