count complete payments instead of relying on the last payment state to be complete