use std::count to be more readable (didn't work with count_if)