Use C-based trigram counter