How to get bits balance in real-time

Thank you very much Dist