add counter for serializers