It's determining the amount of directories between the web host name and the directory that I'm interested in - so I'm counting up the amount of '/' as each one indicates a new directory.  The host name itself will already be ignored due to the wget -nH option, and I want to preserve the last directory thus -2.