add bit counter