We had a requirement to get a count of how many times a particular token appeared in a document, and I found a post by Barbara Boehmer that led us to this solution:
select id, score(1) as token_count from docs where CONTAINS (text,
'<query>
<textquery lang="ENGLISH" grammar="CONTEXT">blah</textquery>
<score datatype="INTEGER" algorithm="COUNT"/>
</query>',1)>0;
This works really well for us. Is there any more documention on Query Templates than what's in the Text Application Developer's Guide?