example of how to count bit mask trues