How can i use facet to get the terms count by java api?