Added iterative binary digits counter