I have an assigment where I have to count the number of words in each .c .cc and .h file.The problem is it keeps showing the syntax error at line 8 and 10 at or near { .This is not a finished script!It may have some other problems but I only needed help with the syntax error!

```
awk  'BEGIN {FS=" ";drb=0;valt=0;}
       {if ( valt == 0 ){
         for( i=1; i<=NF; i++)
             drb++;
         valt++; 
       }
       else{
         FNR==1{ printf "File name: %s,Word count: %d\n",FILENAME, drb;drb=0;}
         for(i=1;i<=NF;i++)
              drb++;}}
     END {printf "File name: %s,Word count: %d",FILENAME,drb }' `find $1 -name '*.c' -o -name '*.cc' -o -name '*.h'`  

```