remove redundant implementation of `Foldable#count`