Split 2-iteration loop for counting matches & storing matches in array
Split 2-iteration loop for two kinds of matches in ExpandBufnames