Update repairSessionCheck.sh

Simplify totalCount calculation in line 42 to perform count with egrep using -c argument.