all.count is not required, just count would perform better (no need to convert to array first)