in reply to web page count

find $DOCUMENTROOT -type f -name '*.html' | wc -l

You might want to tweak this, depending on what you consider a webpage.

Nothing fancy, not even perl, needed.

Abigail