Thank you guys, providing a solutions for my problem.
I have small doubt in my previous program. I did not understand,my count will get incremented but if condition will be true. what will be the reason behind this.
int count = 0;
void setup() {
Serial.begin(9600);
}
void loop() {
if(count==3){
Serial.println(count);
}
count++;
}