Yes, this is called edging (which releases more dopamine than masturbating until you cum). You will need to reset your counter.
That's called 'edging' I think. I once did it during a relationship because I thought that would conserve my sexual energy. It didn't. It might feel different from regular masturbation in the beginning but that will stop soon and it will be just as bad.