Serial communication

Well, your code on the sender is just going to send "1" over and over again; it won't actually count. And, you should declare a type for counter. Maybe something like this:

//Transmitter code

int counter = 1;

void setup(){
  Serial.begin(9600);
}

Void loop(){
  Serial.print(counter);
  delay(10);
  counter++;
}