#include #include int main(void) { int count = 0; int curr; int prev = 0; while(scanf("%d\n", &curr) != EOF) { if (prev && curr > prev) { count++; } prev = curr; } printf("%d\n", count); return 0; }