Simply go to an npm package on npmjs.com and the total number of nested dependencies should show up under the number of direct dependencies. Count different versions as different dependency.