Make count queries of searchtype=count instead of size=0
Add top-level support for LongCount.