I'd do it with a macro:
qv start recording in register v
/"bar"/e<cr> search for "bar" and position the cursor at the end of the match
i1<esc> insert 1 before the cursor and go back to normal mode
n jump to next match
q stop recording
After that, do {count}@v
.