use the matchandocumentcount generator in the shell, since this one is also used in the Service