Hi,
I think the compile error is caused by the fact that you are having a space between the < and the = characters. The less-than-or-equal sign should be without any spaces, so <=.
However, please note that using the count operator like this does not result in a linear program. If the variable is a binary variable, counting the number of non zero values can be done by summing. If they are not binary variables, then you will have to do some additional modelling to achieve this goal.
Guido Diepen
AIMMS Specialist