### Question:
Client { public int countAllFormula(){ try { return Integer.parseInt( directXQuery( "count(./*/*)" ) ); } catch (final XQException e) { e.printStackTrace(); return 0; } } Client();  Client(List<NtcirPattern> patterns); static String resultToXML( Result result ); static String resultsToXML( Results results ); static Object xmlToClass( String xml, Class convertClass ); static StartElement replaceAttr(StartElement event, String attribute, String value); String getXML(); void setShowTime(boolean showTime); void setUseXQ(boolean useXQ); Long basex(String query); Results runQueryNtcirWrap( String query ); Results runMWSQuery( Document mwsQuery ); Results runTexQuery( String tex ); int countRevisionFormula(int rev); int countAllFormula(); boolean deleteRevisionFormula(int rev); boolean updateFormula(Node n); static final String USER; static final String PASSWORD; }### Answer:
@Test public void testCountAllFormula() throws Exception { Client c = new Client(); assertEquals( 104,c.countAllFormula()); }