I have a text file consisting of one line with numbers such as 0 100 90 80 0 70 60
I'm trying to determine how many times the number 0 appears alone (in this case, twice).
I tried using this method which accounts for whitespace,
grep -o " 0 " file | wc -l
but it doesn't account for the first "0" since there's no whitespace preceding it.