https://stackoverflow.com/questions/49297579/how-to-count-search-results-in-vim
You can count the number of matches using the n flag in the substitute command. Use the following to show number of times that some-word matches text in current buffer:
:%s/some-word//gn