Dynamically calculate the number of blob directories.

No more having to increment the old macro after adding a new directory in the
search for blobs.