Add bitset count function.