may be just `list.count { … condition … }`?
# stdlib
o
may be just
list.count { … condition … }
?