First of all, the error message is coming from using OrderCount in the if block. You should be using the variable you declared and read this value into, OrderNum.
The other problem you might have, which I can't tell from this design, is when the Order Number is being updated. It might be best to add this to the trigger, so that the count of orders in the Customer tables is increased by one with the trigger, which can then be checked.
I just added this line to the trigger (after the variable declarations):
UPDATE `customer` SET `OrderCount`=OrderCount+1 WHERE `CustomerID`=NEW.CustomerID;