integer expression expected error

I'm a beginner so I might make beginner mistakes.
I want to count the "#define" directives in every .C file
I get the following errors:

./lab1.sh: line 5: ndef: command not found
./lab1.sh: line 6: [: ndef: integer expression expected

#!/bin/sh

for x in *.[Cc]
do
        ndef = 'grep -c \#define $x'
        if [ ndef -ge 1 ]; then
                echo $x has $ndef define directives
        fi
done

Can you give me a hint of what's wrong?

[INDENT]

        ndef=`grep -c #define $x`
        if [ $ndef -ge 1 ]; then

thanks a lot