support JDK6
add tool: counter