Implemented tape counter in assembler for improved accuracy