Simplify and log JSON properly
Fix counter output