package main import ( "bufio" "fmt" "math" "os" "strconv" ) func main() { count := 0 lastValue := math.MaxInt64 s := bufio.NewScanner(os.Stdin) for s.Scan() { value, _ := strconv.Atoi(s.Text()) if value > lastValue { count++ } lastValue = value } fmt.Println(count) }