Counts recursive calls.