I struggling to find a way to count and conditionally apply
// do stuff based upon the number of terms of a specific taxonomy(ABC) in archive.php...
All I have is this below but it counts all the terms across the site. I want it to only count the number of different terms on the archive.php and apply a conditional based upon the count.
<?php echo 'There are ' . wp_count_terms( 'state', array( 'hide_empty' => false ) ) . ' terms in the taxonomy state.'; ?>