code: public Long getCount(String type, Map<String, ?> terms) {
  		if (terms == null) {
  			return 0L;
  		}
  		MultivaluedMap<String, String> params = new MultivaluedHashMap<>();
  		LinkedList<String> list = new LinkedList<>();
  		for (Map.Entry<String, ? extends Object> term : terms.entrySet()) {
  			String key = term.getKey();
  			Object value = term.getValue();
  			if (value != null) {
  				list.add(key.concat(Config.SEPARATOR).concat(value.toString()));
  			}
  		}
  		if (!terms.isEmpty()) {
  			params.put("terms", list);
  		}
  		params.putSingle(Config._TYPE, type);
  		params.putSingle("count", "true");
  		Pager pager = new Pager();
  		getItems(find("terms", params), pager);
  		return pager.getCount();
  	}
docs: Counts indexed objects matching a set of terms/values.
  @param type the type of object to search for. See {@link com.erudika.para.core.ParaObject#getType()}
  @param terms a list of terms (property values)
  @return the number of results found