code: def number_exons_in_associated_transcript(effect):
      
      return apply_to_transcript_if_exists(
          effect=effect,
          fn=lambda t: len(t.exons),
          default=0)
docs: Number of exons on transcript associated with effect,
      if there is one (otherwise return 0).