Made counter value numeric in JSON result.