Switch from backticks to $(), use grep -c flag instead of piping into wc -l

Since the #! explicitly declares /bin/bash, switch to $() instead of backticks (). Since [[ is also used, I'm guessing this should be acceptable. :)

Also, switch to using 'grep -c' instead of 'grep 'TEXT' file | wc -l'.