// #define _GLIBCXX_DEBUG
#include <bits/stdc++.h>
using namespace std;
#include <atcoder/all>
using namespace atcoder;
using ll = long long;
#define rep(i,n) for (ll i = 0; i < (n); ++i)
using vl = vector<ll>;
using vvl = vector<vl>;
using P = pair<ll,ll>;
#define pb push_back
#define int long long
#define double long double
#define INF (ll) 3e18
// Ctrl + Shift + B コンパイル
// Ctrl + C 中断
// ./m 実行


signed main(){
  int n; cin >> n;
  vector<P> xy(n);
  rep(i,n) cin >> xy[i].first >> xy[i].second;
  int ans = 0;
  for(auto [nx, ny] : xy){
    set<P> st;
    for(auto [x, y] : xy){
      x -= nx;
      y -= ny;
      if (x == 0 && y == 0) continue;
      if (x == 0) {
        st.emplace(0, y/abs(y));
        continue;
      }
      if (y == 0){
        st.emplace(x/abs(x), 0);
        continue;
      }
      int g = gcd(x, y);
      x /= g;
      y /= g;
      st.emplace(x, y);
    }
    if (st.size() != n-1) ans++;
  }
  cout << ans << endl;
}

// 自身を原点として、各ダンサーへのベクトルを取得し、
// 同じベクトルのダンサーが二人居れば不幸。