Now returns query term occurrences correctly, and does fuzzy searching with the -fuzzy argument. Many thanks to John Thompson and DL Consulting Ltd.