public int getCount ( ) { if ( metadata != null && metadata . get ( "count" ) != null ) { return Integer . parseInt ( metadata . get ( "count" ) ) ; } if ( entities == null && entity != null ) { return 1 ; } return 0 ; }
Count ithe number of record returned