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

class Main {
	public static void main(String[] args) throws IOException{
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		try {
			String str = br.readLine();
			String[] s = str.split(" ",0);
			int N = Integer.parseInt(s[0]);
			int M = Integer.parseInt(s[1]);
			int[] road = new int[N];
			Arrays.fill(road, 0);
			for(int i = 0; i < M;i++) {
				str = br.readLine();
				s = str.split(" ",0);
				int a = Integer.parseInt(s[0]);
				int b = Integer.parseInt(s[1]);
				road[a-1]++;
				road[b-1]++;
			}

			for(int i = 0; i < N;i++) {
				System.out.println(road[i]);
			}
//			long max  = 1000000007;
		}catch (Exception e) {
			System.exit(0);
		}
	}
} import java.io.BufferedReader; BufferedReader java.io import java.io.IOException; IOException java.io import java.io.InputStreamReader; InputStreamReader java.io import java.util.Arrays; Arrays java.util class Main {
	public static void main(String[] args) throws IOException{
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		try {
			String str = br.readLine();
			String[] s = str.split(" ",0);
			int N = Integer.parseInt(s[0]);
			int M = Integer.parseInt(s[1]);
			int[] road = new int[N];
			Arrays.fill(road, 0);
			for(int i = 0; i < M;i++) {
				str = br.readLine();
				s = str.split(" ",0);
				int a = Integer.parseInt(s[0]);
				int b = Integer.parseInt(s[1]);
				road[a-1]++;
				road[b-1]++;
			}

			for(int i = 0; i < N;i++) {
				System.out.println(road[i]);
			}
//			long max  = 1000000007;
		}catch (Exception e) {
			System.exit(0);
		}
	}
} Main public static void main(String[] args) throws IOException{
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		try {
			String str = br.readLine();
			String[] s = str.split(" ",0);
			int N = Integer.parseInt(s[0]);
			int M = Integer.parseInt(s[1]);
			int[] road = new int[N];
			Arrays.fill(road, 0);
			for(int i = 0; i < M;i++) {
				str = br.readLine();
				s = str.split(" ",0);
				int a = Integer.parseInt(s[0]);
				int b = Integer.parseInt(s[1]);
				road[a-1]++;
				road[b-1]++;
			}

			for(int i = 0; i < N;i++) {
				System.out.println(road[i]);
			}
//			long max  = 1000000007;
		}catch (Exception e) {
			System.exit(0);
		}
	} main {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		try {
			String str = br.readLine();
			String[] s = str.split(" ",0);
			int N = Integer.parseInt(s[0]);
			int M = Integer.parseInt(s[1]);
			int[] road = new int[N];
			Arrays.fill(road, 0);
			for(int i = 0; i < M;i++) {
				str = br.readLine();
				s = str.split(" ",0);
				int a = Integer.parseInt(s[0]);
				int b = Integer.parseInt(s[1]);
				road[a-1]++;
				road[b-1]++;
			}

			for(int i = 0; i < N;i++) {
				System.out.println(road[i]);
			}
//			long max  = 1000000007;
		}catch (Exception e) {
			System.exit(0);
		}
	} BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) try {
			String str = br.readLine();
			String[] s = str.split(" ",0);
			int N = Integer.parseInt(s[0]);
			int M = Integer.parseInt(s[1]);
			int[] road = new int[N];
			Arrays.fill(road, 0);
			for(int i = 0; i < M;i++) {
				str = br.readLine();
				s = str.split(" ",0);
				int a = Integer.parseInt(s[0]);
				int b = Integer.parseInt(s[1]);
				road[a-1]++;
				road[b-1]++;
			}

			for(int i = 0; i < N;i++) {
				System.out.println(road[i]);
			}
//			long max  = 1000000007;
		}catch (Exception e) {
			System.exit(0);
		} catch (Exception e) {
			System.exit(0);
		} Exception e {
			System.exit(0);
		} System.exit(0) System.exit System 0 {
			String str = br.readLine();
			String[] s = str.split(" ",0);
			int N = Integer.parseInt(s[0]);
			int M = Integer.parseInt(s[1]);
			int[] road = new int[N];
			Arrays.fill(road, 0);
			for(int i = 0; i < M;i++) {
				str = br.readLine();
				s = str.split(" ",0);
				int a = Integer.parseInt(s[0]);
				int b = Integer.parseInt(s[1]);
				road[a-1]++;
				road[b-1]++;
			}

			for(int i = 0; i < N;i++) {
				System.out.println(road[i]);
			}
//			long max  = 1000000007;
		} String str = br.readLine(); str br.readLine() br.readLine br String[] s = str.split(" ",0); s str.split(" ",0) str.split str " " 0 int N = Integer.parseInt(s[0]); N Integer.parseInt(s[0]) Integer.parseInt Integer s[0] s 0 int M = Integer.parseInt(s[1]); M Integer.parseInt(s[1]) Integer.parseInt Integer s[1] s 1 int[] road = new int[N]; road new int[N] N Arrays.fill(road, 0) Arrays.fill Arrays road 0 for(int i = 0; i < M;i++) {
				str = br.readLine();
				s = str.split(" ",0);
				int a = Integer.parseInt(s[0]);
				int b = Integer.parseInt(s[1]);
				road[a-1]++;
				road[b-1]++;
			} int i = 0; int i = 0; i 0 i < M i M i++ i++ i {
				str = br.readLine();
				s = str.split(" ",0);
				int a = Integer.parseInt(s[0]);
				int b = Integer.parseInt(s[1]);
				road[a-1]++;
				road[b-1]++;
			} {
				str = br.readLine();
				s = str.split(" ",0);
				int a = Integer.parseInt(s[0]);
				int b = Integer.parseInt(s[1]);
				road[a-1]++;
				road[b-1]++;
			} str = br.readLine() str br.readLine() br.readLine br s = str.split(" ",0) s str.split(" ",0) str.split str " " 0 int a = Integer.parseInt(s[0]); a Integer.parseInt(s[0]) Integer.parseInt Integer s[0] s 0 int b = Integer.parseInt(s[1]); b Integer.parseInt(s[1]) Integer.parseInt Integer s[1] s 1 road[a-1]++ road[a-1] road a-1 a 1 road[b-1]++ road[b-1] road b-1 b 1 for(int i = 0; i < N;i++) {
				System.out.println(road[i]);
			} int i = 0; int i = 0; i 0 i < N i N i++ i++ i {
				System.out.println(road[i]);
			} {
				System.out.println(road[i]);
			} System.out.println(road[i]) System.out.println System.out System System.out road[i] road i String[] args args
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.Arrays;

class Main {
	public static void main(String[] args) throws IOException{
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		try {
			String str = br.readLine();
			String[] s = str.split(" ",0);
			int N = Integer.parseInt(s[0]);
			int M = Integer.parseInt(s[1]);
			int[] road = new int[N];
			Arrays.fill(road, 0);
			for(int i = 0; i < M;i++) {
				str = br.readLine();
				s = str.split(" ",0);
				int a = Integer.parseInt(s[0]);
				int b = Integer.parseInt(s[1]);
				road[a-1]++;
				road[b-1]++;
			}

			for(int i = 0; i < N;i++) {
				System.out.println(road[i]);
			}
//			long max  = 1000000007;
		}catch (Exception e) {
			System.exit(0);
		}
	}
}
