replace the value of an array or hash field with it's count
# e.g. tags => ["foo", "bar"] count(tags) # tags => 2
Catmandu::Fix