How To Display Selected Terms For Custom Taxonomy?

This might help you to find your solution.

  1. print the result of get_terms without arguments

    $chaptertitles=get_terms( 'chapters');      
    print_r($chaptertitles);    
    
  2. Check in above result can you get the item id 74 & 76.

  3. I think you might not get the the item id 74 & 76 that’s why you get the zero for $count1.

  4. Include the item which you may get in $chaptertitles.