How to find in the text file using Vim how many times specific word repeats.
For example, I want to see how many times word "name" repeats in the code:
"collection": "animals",
"fields": [
{
"field": "id",
"name": ""
},
{
"field": "age",
"name": ""
},
{
"field": "origin",
"name": ""
}
Result - 3