Left over scratch space counting