You can the count the number of matches of a pattern by using the n
flag while using the substitute command. Try the following command:
:%s/something//gn
If you want to know on how many lines it matches, just omit the g
flag:
:%s/something//n
Hope this tip helped you out!