the first alteration I thought of to make use of 'std::vallary's capabilities
simplifying calls to 'countLosses()'