import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

class Main {
	public static void main(String args[]) throws IOException {
		BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
		Solver solver = new Solver();
		solver.init();
		solver.readHead(in.readLine());
		for (; solver.hasNext();) {
			solver.readBody(in.readLine());
		}
		solver.solve();
	}
}

class Solver {
	int N;
	int M;
	int cnt;
	int[] way;

	public void init() {
		N = 0;
		cnt = 0;
	}

	public void readHead(String str) {
		String[] strArr = str.split(" ");
		// N = Integer.parseInt(strArr[0]);
		// System.out.println(N);
		N = Integer.parseInt(strArr[0]);
		M = Integer.parseInt(strArr[1]);
		way = new int[N + 1];
	}

	public boolean hasNext() {
		return cnt < M;
	}

	public void readBody(String str) {
		String[] strArr = str.split(" ");
		int a = Integer.parseInt(strArr[0]);
		int b = Integer.parseInt(strArr[1]);
		way[a]++;
		way[b]++;
		// System.out.println(str);
		cnt++;
	}

	public void solve() {
		for (int i = 1; i <= N; i++)
			System.out.println(way[i]);
	}
} import java.io.BufferedReader; BufferedReader java.io import java.io.IOException; IOException java.io import java.io.InputStreamReader; InputStreamReader java.io class Main {
	public static void main(String args[]) throws IOException {
		BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
		Solver solver = new Solver();
		solver.init();
		solver.readHead(in.readLine());
		for (; solver.hasNext();) {
			solver.readBody(in.readLine());
		}
		solver.solve();
	}
} Main public static void main(String args[]) throws IOException {
		BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
		Solver solver = new Solver();
		solver.init();
		solver.readHead(in.readLine());
		for (; solver.hasNext();) {
			solver.readBody(in.readLine());
		}
		solver.solve();
	} main {
		BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
		Solver solver = new Solver();
		solver.init();
		solver.readHead(in.readLine());
		for (; solver.hasNext();) {
			solver.readBody(in.readLine());
		}
		solver.solve();
	} BufferedReader in = new BufferedReader(new InputStreamReader(System.in)); in new BufferedReader(new InputStreamReader(System.in)) Solver solver = new Solver(); solver new Solver() solver.init() solver.init solver solver.readHead(in.readLine()) solver.readHead solver in.readLine() in.readLine in for (; solver.hasNext();) {
			solver.readBody(in.readLine());
		} ; solver.hasNext() solver.hasNext solver {
			solver.readBody(in.readLine());
		} {
			solver.readBody(in.readLine());
		} solver.readBody(in.readLine()) solver.readBody solver in.readLine() in.readLine in solver.solve() solver.solve solver String args[] args class Solver {
	int N;
	int M;
	int cnt;
	int[] way;

	public void init() {
		N = 0;
		cnt = 0;
	}

	public void readHead(String str) {
		String[] strArr = str.split(" ");
		// N = Integer.parseInt(strArr[0]);
		// System.out.println(N);
		N = Integer.parseInt(strArr[0]);
		M = Integer.parseInt(strArr[1]);
		way = new int[N + 1];
	}

	public boolean hasNext() {
		return cnt < M;
	}

	public void readBody(String str) {
		String[] strArr = str.split(" ");
		int a = Integer.parseInt(strArr[0]);
		int b = Integer.parseInt(strArr[1]);
		way[a]++;
		way[b]++;
		// System.out.println(str);
		cnt++;
	}

	public void solve() {
		for (int i = 1; i <= N; i++)
			System.out.println(way[i]);
	}
} Solver int N; N int M; M int cnt; cnt int[] way; way public void init() {
		N = 0;
		cnt = 0;
	} init {
		N = 0;
		cnt = 0;
	} N = 0 N 0 cnt = 0 cnt 0 public void readHead(String str) {
		String[] strArr = str.split(" ");
		// N = Integer.parseInt(strArr[0]);
		// System.out.println(N);
		N = Integer.parseInt(strArr[0]);
		M = Integer.parseInt(strArr[1]);
		way = new int[N + 1];
	} readHead {
		String[] strArr = str.split(" ");
		// N = Integer.parseInt(strArr[0]);
		// System.out.println(N);
		N = Integer.parseInt(strArr[0]);
		M = Integer.parseInt(strArr[1]);
		way = new int[N + 1];
	} String[] strArr = str.split(" "); strArr str.split(" ") str.split str " " N = Integer.parseInt(strArr[0]) N Integer.parseInt(strArr[0]) Integer.parseInt Integer strArr[0] strArr 0 M = Integer.parseInt(strArr[1]) M Integer.parseInt(strArr[1]) Integer.parseInt Integer strArr[1] strArr 1 way = new int[N + 1] way new int[N + 1] N + 1 N 1 String str str public boolean hasNext() {
		return cnt < M;
	} hasNext {
		return cnt < M;
	} return cnt < M; cnt < M cnt M public void readBody(String str) {
		String[] strArr = str.split(" ");
		int a = Integer.parseInt(strArr[0]);
		int b = Integer.parseInt(strArr[1]);
		way[a]++;
		way[b]++;
		// System.out.println(str);
		cnt++;
	} readBody {
		String[] strArr = str.split(" ");
		int a = Integer.parseInt(strArr[0]);
		int b = Integer.parseInt(strArr[1]);
		way[a]++;
		way[b]++;
		// System.out.println(str);
		cnt++;
	} String[] strArr = str.split(" "); strArr str.split(" ") str.split str " " int a = Integer.parseInt(strArr[0]); a Integer.parseInt(strArr[0]) Integer.parseInt Integer strArr[0] strArr 0 int b = Integer.parseInt(strArr[1]); b Integer.parseInt(strArr[1]) Integer.parseInt Integer strArr[1] strArr 1 way[a]++ way[a] way a way[b]++ way[b] way b cnt++ cnt String str str public void solve() {
		for (int i = 1; i <= N; i++)
			System.out.println(way[i]);
	} solve {
		for (int i = 1; i <= N; i++)
			System.out.println(way[i]);
	} for (int i = 1; i <= N; i++)
			System.out.println(way[i]); int i = 1; int i = 1; i 1 i <= N i N i++ i++ i System.out.println(way[i]); System.out.println(way[i]) System.out.println System.out System System.out way[i] way i
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

class Main {
	public static void main(String args[]) throws IOException {
		BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
		Solver solver = new Solver();
		solver.init();
		solver.readHead(in.readLine());
		for (; solver.hasNext();) {
			solver.readBody(in.readLine());
		}
		solver.solve();
	}
}

class Solver {
	int N;
	int M;
	int cnt;
	int[] way;

	public void init() {
		N = 0;
		cnt = 0;
	}

	public void readHead(String str) {
		String[] strArr = str.split(" ");
		// N = Integer.parseInt(strArr[0]);
		// System.out.println(N);
		N = Integer.parseInt(strArr[0]);
		M = Integer.parseInt(strArr[1]);
		way = new int[N + 1];
	}

	public boolean hasNext() {
		return cnt < M;
	}

	public void readBody(String str) {
		String[] strArr = str.split(" ");
		int a = Integer.parseInt(strArr[0]);
		int b = Integer.parseInt(strArr[1]);
		way[a]++;
		way[b]++;
		// System.out.println(str);
		cnt++;
	}

	public void solve() {
		for (int i = 1; i <= N; i++)
			System.out.println(way[i]);
	}
}
