import sys input = sys.stdin.readline N = int(input()) ps = [] for _ in range(N): ps.append(tuple(map(int, input().split()))) cnt = 2 for p in ps[2:]: if (ps[1][1] - ps[0][1])*(ps[1][0] - p[0]) == (ps[1][1] - p[1])*(ps[1][0] - ps[0][0]): cnt += 1 print(cnt)