#include <iostream>
#include <string>
usingnamespace std;
int main(){
string entline="";
int i=0, n=0, x=0, linelen=0, counter=0, filler=0;
cout<<"Please enter a DNA sequence.";
getline(cin, entline);
linelen=entline.length();
cout<<"Enter the number of consecutive t's in a sequence"
<<"required to count as an occurance."<<endl;
cin >> n;
for(i=0; i<linelen; i++)
if(entline[i]='t')
for(x=0; x!=n; x++)
if(entline[x]='t')
counter++;
cout<<"There are "<<counter<<" occurances of "<<n
<<" consecutive t's in the sequence."<<endl;
cin >> filler;
return 0;
}