Added a warning if no words were found while indexing a document.

This usually means there's a mismatch between the input format and what
IndexTool expects based on the format you've specified on the command
line. Have a look at the DocIndexer in question to get an idea of what's
going wrong.
Added Hits.countBy() to group without storing results.

This is useful for e.g. implementing faceted search.