import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.util.List;
import java.util.ArrayList;
import java.util.Arrays;

public class Main {
    public static void main(String[] args) throws Exception {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));

		String[] ss0 = br.readLine().trim().split(" ", 0);
		int N = Integer.parseInt(ss0[0]);
		int M = Integer.parseInt(ss0[1]);
		
		int[] city = new int[N];
		for(int i = 0; i < M; i++){
			ss0 = br.readLine().trim().split(" ", 0);
			city[Integer.parseInt(ss0[0])-1] += 1;
			city[Integer.parseInt(ss0[1])-1] += 1;
		}

		StringBuilder sb = new StringBuilder();
		for(int i: city) {
			sb.append(i);
			sb.append(System.getProperty("line.separator"));
		}



        System.out.println(sb);
        return;
    }


} import java.io.BufferedReader; BufferedReader java.io import java.io.InputStreamReader; InputStreamReader java.io import java.util.List; List java.util import java.util.ArrayList; ArrayList java.util import java.util.Arrays; Arrays java.util public class Main {
    public static void main(String[] args) throws Exception {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));

		String[] ss0 = br.readLine().trim().split(" ", 0);
		int N = Integer.parseInt(ss0[0]);
		int M = Integer.parseInt(ss0[1]);
		
		int[] city = new int[N];
		for(int i = 0; i < M; i++){
			ss0 = br.readLine().trim().split(" ", 0);
			city[Integer.parseInt(ss0[0])-1] += 1;
			city[Integer.parseInt(ss0[1])-1] += 1;
		}

		StringBuilder sb = new StringBuilder();
		for(int i: city) {
			sb.append(i);
			sb.append(System.getProperty("line.separator"));
		}



        System.out.println(sb);
        return;
    }


} Main public static void main(String[] args) throws Exception {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));

		String[] ss0 = br.readLine().trim().split(" ", 0);
		int N = Integer.parseInt(ss0[0]);
		int M = Integer.parseInt(ss0[1]);
		
		int[] city = new int[N];
		for(int i = 0; i < M; i++){
			ss0 = br.readLine().trim().split(" ", 0);
			city[Integer.parseInt(ss0[0])-1] += 1;
			city[Integer.parseInt(ss0[1])-1] += 1;
		}

		StringBuilder sb = new StringBuilder();
		for(int i: city) {
			sb.append(i);
			sb.append(System.getProperty("line.separator"));
		}



        System.out.println(sb);
        return;
    } main {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));

		String[] ss0 = br.readLine().trim().split(" ", 0);
		int N = Integer.parseInt(ss0[0]);
		int M = Integer.parseInt(ss0[1]);
		
		int[] city = new int[N];
		for(int i = 0; i < M; i++){
			ss0 = br.readLine().trim().split(" ", 0);
			city[Integer.parseInt(ss0[0])-1] += 1;
			city[Integer.parseInt(ss0[1])-1] += 1;
		}

		StringBuilder sb = new StringBuilder();
		for(int i: city) {
			sb.append(i);
			sb.append(System.getProperty("line.separator"));
		}



        System.out.println(sb);
        return;
    } BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) String[] ss0 = br.readLine().trim().split(" ", 0); ss0 br.readLine().trim().split(" ", 0) br.readLine().trim().split br.readLine().trim() br.readLine().trim br.readLine() br.readLine br " " 0 int N = Integer.parseInt(ss0[0]); N Integer.parseInt(ss0[0]) Integer.parseInt Integer ss0[0] ss0 0 int M = Integer.parseInt(ss0[1]); M Integer.parseInt(ss0[1]) Integer.parseInt Integer ss0[1] ss0 1 int[] city = new int[N]; city new int[N] N for(int i = 0; i < M; i++){
			ss0 = br.readLine().trim().split(" ", 0);
			city[Integer.parseInt(ss0[0])-1] += 1;
			city[Integer.parseInt(ss0[1])-1] += 1;
		} int i = 0; int i = 0; i 0 i < M i M i++ i++ i {
			ss0 = br.readLine().trim().split(" ", 0);
			city[Integer.parseInt(ss0[0])-1] += 1;
			city[Integer.parseInt(ss0[1])-1] += 1;
		} {
			ss0 = br.readLine().trim().split(" ", 0);
			city[Integer.parseInt(ss0[0])-1] += 1;
			city[Integer.parseInt(ss0[1])-1] += 1;
		} ss0 = br.readLine().trim().split(" ", 0) ss0 br.readLine().trim().split(" ", 0) br.readLine().trim().split br.readLine().trim() br.readLine().trim br.readLine() br.readLine br " " 0 city[Integer.parseInt(ss0[0])-1] += 1 city[Integer.parseInt(ss0[0])-1] city Integer.parseInt(ss0[0])-1 Integer.parseInt(ss0[0]) Integer.parseInt Integer ss0[0] ss0 0 1 1 city[Integer.parseInt(ss0[1])-1] += 1 city[Integer.parseInt(ss0[1])-1] city Integer.parseInt(ss0[1])-1 Integer.parseInt(ss0[1]) Integer.parseInt Integer ss0[1] ss0 1 1 1 StringBuilder sb = new StringBuilder(); sb new StringBuilder() for(int i: city) {
			sb.append(i);
			sb.append(System.getProperty("line.separator"));
		} int i city {
			sb.append(i);
			sb.append(System.getProperty("line.separator"));
		} {
			sb.append(i);
			sb.append(System.getProperty("line.separator"));
		} sb.append(i) sb.append sb i sb.append(System.getProperty("line.separator")) sb.append sb System.getProperty("line.separator") System.getProperty System "line.separator" System.out.println(sb) System.out.println System.out System System.out sb return; String[] args args public class Main {
    public static void main(String[] args) throws Exception {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));

		String[] ss0 = br.readLine().trim().split(" ", 0);
		int N = Integer.parseInt(ss0[0]);
		int M = Integer.parseInt(ss0[1]);
		
		int[] city = new int[N];
		for(int i = 0; i < M; i++){
			ss0 = br.readLine().trim().split(" ", 0);
			city[Integer.parseInt(ss0[0])-1] += 1;
			city[Integer.parseInt(ss0[1])-1] += 1;
		}

		StringBuilder sb = new StringBuilder();
		for(int i: city) {
			sb.append(i);
			sb.append(System.getProperty("line.separator"));
		}



        System.out.println(sb);
        return;
    }


} public class Main {
    public static void main(String[] args) throws Exception {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));

		String[] ss0 = br.readLine().trim().split(" ", 0);
		int N = Integer.parseInt(ss0[0]);
		int M = Integer.parseInt(ss0[1]);
		
		int[] city = new int[N];
		for(int i = 0; i < M; i++){
			ss0 = br.readLine().trim().split(" ", 0);
			city[Integer.parseInt(ss0[0])-1] += 1;
			city[Integer.parseInt(ss0[1])-1] += 1;
		}

		StringBuilder sb = new StringBuilder();
		for(int i: city) {
			sb.append(i);
			sb.append(System.getProperty("line.separator"));
		}



        System.out.println(sb);
        return;
    }


} Main
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.util.List;
import java.util.ArrayList;
import java.util.Arrays;

public class Main {
    public static void main(String[] args) throws Exception {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));

		String[] ss0 = br.readLine().trim().split(" ", 0);
		int N = Integer.parseInt(ss0[0]);
		int M = Integer.parseInt(ss0[1]);
		
		int[] city = new int[N];
		for(int i = 0; i < M; i++){
			ss0 = br.readLine().trim().split(" ", 0);
			city[Integer.parseInt(ss0[0])-1] += 1;
			city[Integer.parseInt(ss0[1])-1] += 1;
		}

		StringBuilder sb = new StringBuilder();
		for(int i: city) {
			sb.append(i);
			sb.append(System.getProperty("line.separator"));
		}



        System.out.println(sb);
        return;
    }


}