Counting implementation of the dispatch function.
The count is incremented for every dispatch, and decremented for every completion, including suspension.