# Serialization visitor to count attribute in `Serializable` objects
class AttributeCounter
super Serializer
# Number of attributes counted
var count = 0
redef fun serialize_attribute(name, object) do count += 1
end
lib/msgpack/serialization_write.nit:151,1--159,3