added bit counter to postlab branch