Trinucleotide Count

Hie everyone
I am one of those: new to genomics and new to Hail.
I have been looking for a hail code to count the number of trinucleotide repeats of a certain gene, and then add it to a new column in the Hail table. Apologies if this is basic, but please help.