public Long count(String filterString) throws Exception {
log.info("Counting events by filter '{}'", filterString);
try {
if (view != null) {
FilterExpression filter = FilterCompiler.parse(filterString);
Long count = view.count(filter);
log.debug(" count is {}", count);
return count;
} else {
log.debug("View is 'null'!");