Given a file with data like this (ie stores.dat file)
sid|storeNo|latitude|longitude 2tt|1|-28.0372000t0|153.42921670 9|2t|-33tt.85t09t0000|15t1.03274200
grep -n -o "t" stores.dat | sort -n | uniq -c | cut -d : -f 1
gives almost exactly the output you want:
4 1 3 2 6 3
Thanks to @raghav-bhushan for the grep -o hint, what a useful flag. The -n flag includes the line number as well.
grep -o