The struct BitCount is replaced with the constexpr function template bitCount().