final Map<String, Integer> map = new HashMap<String, Integer>();
map.put("inserted", new Integer(0));
map.put("deleted", new Integer(0));
map.put("updated", new Integer(0));
wm.openLiveQuery("peeps", new Object[] {Variable.v, 99 }, new ViewChangedEventListener() {
public void rowAdded(Row row) {
System.out.println( "inserted" );
Integer integer = map.get("inserted");
map.put("inserted", integer.intValue() + 1 );
}