[mod] simplify bit count brute force method