Pack code into DataCounter class