Update 072014-CountSubstrings.cpp

Minor changes