This is very cute but also not very readable. How about

pending -= 1;
if (pending == 0) {
...
}