question: private ResponsePacket executeCount ( QueryTemplatePacket template , IJSpace space , Transaction txn ) throws SQLException { try { template . setRouting ( getRouting ( ) ) ; template . setExplainPlan ( getExplainPlan ( ) ) ; int count = space . count ( template , txn , getReadModifier ( ) ) ; ResponsePacket response = new ResponsePacket ( ) ; Object [ ] [ ] values = new Object [ 1 ] [ 1 ] ; values [ 0 ] [ 0 ] = count ; ResultEntry result = new ResultEntry ( new String [ ] { getCountColumnName ( ) } , new String [ ] { getCountColumnLabel ( ) } , new String [ ] { "" } , values ) ; response . setResultEntry ( result ) ; return response ; } catch ( Exception e ) { if ( _logger . isLoggable ( Level . SEVERE ) ) { _logger . log ( Level . SEVERE , e . getMessage ( ) , e ) ; } throw new SQLException ( "Failed to execute count: " + e , "GSP" , - 111 ) ; } }
target:  Handle read query - check if it is a read query or a readMultiple and execute it