Since you ask an `awk` code, here is one:
awk '/"[^"]*"[[:space:]]*:[[:space:]]*"[^"]*"/ { n++ } END { print n }'
But `grep` is more appropriate for this:
grep -c '"[^"]*"[[:space:]]*:[[:space:]]*"[^"]*"'
Since you ask an `awk` code, here is one:
awk '/"[^"]*"[[:space:]]*:[[:space:]]*"[^"]*"/ { n++ } END { print n }'
But `grep` is more appropriate for this:
grep -c '"[^"]*"[[:space:]]*:[[:space:]]*"[^"]*"'