Expected initializer missing for counter

Bluenick2100:
Thanks in advance for any info

    if (Serial.available()) {

// wait a bit for the entire message to arrive
   delay(100);

Look into proper asynchronous Serial communication....