jumlah bitset int

bitset<10> s(string("0010011010"));
cout << s.count() << "\n"; // 4
BreadCode