Added bit set counting.