counting correctly