Update ex5_14.cpp

Modify a bug for testing the count and max_duplicated.second, to make sure it will update max_duplicated.second only when a word is successively repeated more than two times.