speed up counting annotation matches