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