Works well after minor change

The EVENTS variable returned a single line, so changed to enclose RESULTS in double quotes.

Diff:

EVENTS=`echo “$RESULT” | grep “problem_num” | wc -l`