Fix #5 issue

If input is anchor such as '^', '$', matched count loop makes infinite loop.
Reset match count variables in isearch-mode-end-hook