Set counter = 0 in DB. Put it into JWT. Increment the counter in DB to revoke the user. Compare counter in JWT < counter in DB. What's the problem?
if you _had_ to do that, I would put the counter into something like redis instead.
10 timeout to reply. o_O