function result = countGGT(dna)
% returns the number of 'GGT' substrings in dna

result = 0;
L1 = length(dna);

for(i = 1:L1-2)
    if(dna(i:i+2) == 'GGT')
        result = result + 1;
    end
end
