#!/bin/csh

foreach file ($*)
  grep -v "^#" $file | gcc -E - | \
  grep -Ev '(^[^[:graph:]{}\t]*$)|(^\#)' | wc -l
end

