|Why would you want to use grep when it isn't needed? Because your instructor told you to? :)|
I suppose you could do something silly and find all the files in the home directory and then use grep to only look at files that end in .sql:
find . -type f -print|grep .sql$|wc -l
Depending on your Unix version, you may have to use egrep if grep does not work.