counter reducer serialization implementation -- fixed serialization issue