in reply to Bitwise operators on binary objects
Sounds like a Bit::Vector.
Just to elaborate (as it might not be immediately evident): use the ->Norm() method to count the number bits that are set.