Keep a local count of the max dependency list size.

This global variable could be modified during recursion so keep our
own local copy to compare against.