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

public class Main {
	
	public static void main(String args[]) throws IOException {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String nmi = br.readLine();
		String[] nm = nmi.split(" ");
		int n = Integer.parseInt(nm[0]);
		int m = Integer.parseInt(nm[1]);
		int[][] a = new int[m][2];
		int[] num = new int[55];
		for(int i=0;i<m;i++) {
			String abi = br.readLine();
			String[] ab = abi.split(" ");
			num[Integer.parseInt(ab[0])]++;
			num[Integer.parseInt(ab[1])]++;
		}
		for(int i=1;i<=n;i++) {
			System.out.println(num[i]);
		}
	}
}


 import java.io.BufferedReader; BufferedReader java.io import java.io.IOException; IOException java.io import java.io.InputStreamReader; InputStreamReader java.io public class Main {
	
	public static void main(String args[]) throws IOException {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String nmi = br.readLine();
		String[] nm = nmi.split(" ");
		int n = Integer.parseInt(nm[0]);
		int m = Integer.parseInt(nm[1]);
		int[][] a = new int[m][2];
		int[] num = new int[55];
		for(int i=0;i<m;i++) {
			String abi = br.readLine();
			String[] ab = abi.split(" ");
			num[Integer.parseInt(ab[0])]++;
			num[Integer.parseInt(ab[1])]++;
		}
		for(int i=1;i<=n;i++) {
			System.out.println(num[i]);
		}
	}
} Main public static void main(String args[]) throws IOException {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String nmi = br.readLine();
		String[] nm = nmi.split(" ");
		int n = Integer.parseInt(nm[0]);
		int m = Integer.parseInt(nm[1]);
		int[][] a = new int[m][2];
		int[] num = new int[55];
		for(int i=0;i<m;i++) {
			String abi = br.readLine();
			String[] ab = abi.split(" ");
			num[Integer.parseInt(ab[0])]++;
			num[Integer.parseInt(ab[1])]++;
		}
		for(int i=1;i<=n;i++) {
			System.out.println(num[i]);
		}
	} main {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String nmi = br.readLine();
		String[] nm = nmi.split(" ");
		int n = Integer.parseInt(nm[0]);
		int m = Integer.parseInt(nm[1]);
		int[][] a = new int[m][2];
		int[] num = new int[55];
		for(int i=0;i<m;i++) {
			String abi = br.readLine();
			String[] ab = abi.split(" ");
			num[Integer.parseInt(ab[0])]++;
			num[Integer.parseInt(ab[1])]++;
		}
		for(int i=1;i<=n;i++) {
			System.out.println(num[i]);
		}
	} BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) String nmi = br.readLine(); nmi br.readLine() br.readLine br String[] nm = nmi.split(" "); nm nmi.split(" ") nmi.split nmi " " int n = Integer.parseInt(nm[0]); n Integer.parseInt(nm[0]) Integer.parseInt Integer nm[0] nm 0 int m = Integer.parseInt(nm[1]); m Integer.parseInt(nm[1]) Integer.parseInt Integer nm[1] nm 1 int[][] a = new int[m][2]; a new int[m][2] m 2 int[] num = new int[55]; num new int[55] 55 for(int i=0;i<m;i++) {
			String abi = br.readLine();
			String[] ab = abi.split(" ");
			num[Integer.parseInt(ab[0])]++;
			num[Integer.parseInt(ab[1])]++;
		} int i=0; int i=0; i 0 i<m i m i++ i++ i {
			String abi = br.readLine();
			String[] ab = abi.split(" ");
			num[Integer.parseInt(ab[0])]++;
			num[Integer.parseInt(ab[1])]++;
		} {
			String abi = br.readLine();
			String[] ab = abi.split(" ");
			num[Integer.parseInt(ab[0])]++;
			num[Integer.parseInt(ab[1])]++;
		} String abi = br.readLine(); abi br.readLine() br.readLine br String[] ab = abi.split(" "); ab abi.split(" ") abi.split abi " " num[Integer.parseInt(ab[0])]++ num[Integer.parseInt(ab[0])] num Integer.parseInt(ab[0]) Integer.parseInt Integer ab[0] ab 0 num[Integer.parseInt(ab[1])]++ num[Integer.parseInt(ab[1])] num Integer.parseInt(ab[1]) Integer.parseInt Integer ab[1] ab 1 for(int i=1;i<=n;i++) {
			System.out.println(num[i]);
		} int i=1; int i=1; i 1 i<=n i n i++ i++ i {
			System.out.println(num[i]);
		} {
			System.out.println(num[i]);
		} System.out.println(num[i]) System.out.println System.out System System.out num[i] num i String args[] args public class Main {
	
	public static void main(String args[]) throws IOException {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String nmi = br.readLine();
		String[] nm = nmi.split(" ");
		int n = Integer.parseInt(nm[0]);
		int m = Integer.parseInt(nm[1]);
		int[][] a = new int[m][2];
		int[] num = new int[55];
		for(int i=0;i<m;i++) {
			String abi = br.readLine();
			String[] ab = abi.split(" ");
			num[Integer.parseInt(ab[0])]++;
			num[Integer.parseInt(ab[1])]++;
		}
		for(int i=1;i<=n;i++) {
			System.out.println(num[i]);
		}
	}
} public class Main {
	
	public static void main(String args[]) throws IOException {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String nmi = br.readLine();
		String[] nm = nmi.split(" ");
		int n = Integer.parseInt(nm[0]);
		int m = Integer.parseInt(nm[1]);
		int[][] a = new int[m][2];
		int[] num = new int[55];
		for(int i=0;i<m;i++) {
			String abi = br.readLine();
			String[] ab = abi.split(" ");
			num[Integer.parseInt(ab[0])]++;
			num[Integer.parseInt(ab[1])]++;
		}
		for(int i=1;i<=n;i++) {
			System.out.println(num[i]);
		}
	}
} Main

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

public class Main {
	
	public static void main(String args[]) throws IOException {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String nmi = br.readLine();
		String[] nm = nmi.split(" ");
		int n = Integer.parseInt(nm[0]);
		int m = Integer.parseInt(nm[1]);
		int[][] a = new int[m][2];
		int[] num = new int[55];
		for(int i=0;i<m;i++) {
			String abi = br.readLine();
			String[] ab = abi.split(" ");
			num[Integer.parseInt(ab[0])]++;
			num[Integer.parseInt(ab[1])]++;
		}
		for(int i=1;i<=n;i++) {
			System.out.println(num[i]);
		}
	}
}



