import java.io.*;
import java.util.*;
import java.text.*;
public class count {
public static final String PROBLEM = "count";
BufferedReader in;
PrintWriter out;
public static void main(String[] args) throws Exception {
new count().run();
}
void run() throws Exception {
in = new BufferedReader(new FileReader(PROBLEM+".in"));
try {
out = new PrintWriter(new BufferedWriter(new FileWriter(PROBLEM+".out")));
try {
solve();
} finally {
out.close();
}
} finally {
in.close();
}
}
void solve() throws Exception {
int count=0;
for (;;) {
String line = in.readLine();
if (line == null) break;
++count;
}
out.println(count);
}
}