Simple bit counter