
import java.io.*;
import java.util.*;

public class Main {
    public static void main (String[] args) throws java.lang.Exception {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        StringTokenizer st = new StringTokenizer(br.readLine());
        int n = Integer.parseInt(st.nextToken()),
            m = Integer.parseInt(st.nextToken());
        int[] nodes = new int[100];
        for (int i=0 ; i<m ; i++) {
            st = new StringTokenizer(br.readLine());
            int a = Integer.parseInt(st.nextToken()),
                b = Integer.parseInt(st.nextToken());
            nodes[a]++;
            nodes[b]++;
        }
        for (int i=1 ; i<=n ; i++) System.out.println(nodes[i]);
    }
}
 import java.io.*; io.* java import java.util.*; util.* java public class Main {
    public static void main (String[] args) throws java.lang.Exception {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        StringTokenizer st = new StringTokenizer(br.readLine());
        int n = Integer.parseInt(st.nextToken()),
            m = Integer.parseInt(st.nextToken());
        int[] nodes = new int[100];
        for (int i=0 ; i<m ; i++) {
            st = new StringTokenizer(br.readLine());
            int a = Integer.parseInt(st.nextToken()),
                b = Integer.parseInt(st.nextToken());
            nodes[a]++;
            nodes[b]++;
        }
        for (int i=1 ; i<=n ; i++) System.out.println(nodes[i]);
    }
} Main public static void main (String[] args) throws java.lang.Exception {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        StringTokenizer st = new StringTokenizer(br.readLine());
        int n = Integer.parseInt(st.nextToken()),
            m = Integer.parseInt(st.nextToken());
        int[] nodes = new int[100];
        for (int i=0 ; i<m ; i++) {
            st = new StringTokenizer(br.readLine());
            int a = Integer.parseInt(st.nextToken()),
                b = Integer.parseInt(st.nextToken());
            nodes[a]++;
            nodes[b]++;
        }
        for (int i=1 ; i<=n ; i++) System.out.println(nodes[i]);
    } main {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        StringTokenizer st = new StringTokenizer(br.readLine());
        int n = Integer.parseInt(st.nextToken()),
            m = Integer.parseInt(st.nextToken());
        int[] nodes = new int[100];
        for (int i=0 ; i<m ; i++) {
            st = new StringTokenizer(br.readLine());
            int a = Integer.parseInt(st.nextToken()),
                b = Integer.parseInt(st.nextToken());
            nodes[a]++;
            nodes[b]++;
        }
        for (int i=1 ; i<=n ; i++) System.out.println(nodes[i]);
    } BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) StringTokenizer st = new StringTokenizer(br.readLine()); st new StringTokenizer(br.readLine()) int n = Integer.parseInt(st.nextToken()) n Integer.parseInt(st.nextToken()) Integer.parseInt Integer st.nextToken() st.nextToken st m = Integer.parseInt(st.nextToken()); m Integer.parseInt(st.nextToken()) Integer.parseInt Integer st.nextToken() st.nextToken st int[] nodes = new int[100]; nodes new int[100] 100 for (int i=0 ; i<m ; i++) {
            st = new StringTokenizer(br.readLine());
            int a = Integer.parseInt(st.nextToken()),
                b = Integer.parseInt(st.nextToken());
            nodes[a]++;
            nodes[b]++;
        } int i=0 ; int i=0 ; i 0 i<m i m i++ i++ i {
            st = new StringTokenizer(br.readLine());
            int a = Integer.parseInt(st.nextToken()),
                b = Integer.parseInt(st.nextToken());
            nodes[a]++;
            nodes[b]++;
        } {
            st = new StringTokenizer(br.readLine());
            int a = Integer.parseInt(st.nextToken()),
                b = Integer.parseInt(st.nextToken());
            nodes[a]++;
            nodes[b]++;
        } st = new StringTokenizer(br.readLine()) st new StringTokenizer(br.readLine()) int a = Integer.parseInt(st.nextToken()) a Integer.parseInt(st.nextToken()) Integer.parseInt Integer st.nextToken() st.nextToken st b = Integer.parseInt(st.nextToken()); b Integer.parseInt(st.nextToken()) Integer.parseInt Integer st.nextToken() st.nextToken st nodes[a]++ nodes[a] nodes a nodes[b]++ nodes[b] nodes b for (int i=1 ; i<=n ; i++) System.out.println(nodes[i]); int i=1 ; int i=1 ; i 1 i<=n i n i++ i++ i System.out.println(nodes[i]); System.out.println(nodes[i]) System.out.println System.out System System.out nodes[i] nodes i String[] args args public class Main {
    public static void main (String[] args) throws java.lang.Exception {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        StringTokenizer st = new StringTokenizer(br.readLine());
        int n = Integer.parseInt(st.nextToken()),
            m = Integer.parseInt(st.nextToken());
        int[] nodes = new int[100];
        for (int i=0 ; i<m ; i++) {
            st = new StringTokenizer(br.readLine());
            int a = Integer.parseInt(st.nextToken()),
                b = Integer.parseInt(st.nextToken());
            nodes[a]++;
            nodes[b]++;
        }
        for (int i=1 ; i<=n ; i++) System.out.println(nodes[i]);
    }
} public class Main {
    public static void main (String[] args) throws java.lang.Exception {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        StringTokenizer st = new StringTokenizer(br.readLine());
        int n = Integer.parseInt(st.nextToken()),
            m = Integer.parseInt(st.nextToken());
        int[] nodes = new int[100];
        for (int i=0 ; i<m ; i++) {
            st = new StringTokenizer(br.readLine());
            int a = Integer.parseInt(st.nextToken()),
                b = Integer.parseInt(st.nextToken());
            nodes[a]++;
            nodes[b]++;
        }
        for (int i=1 ; i<=n ; i++) System.out.println(nodes[i]);
    }
} Main

import java.io.*;
import java.util.*;

public class Main {
    public static void main (String[] args) throws java.lang.Exception {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        StringTokenizer st = new StringTokenizer(br.readLine());
        int n = Integer.parseInt(st.nextToken()),
            m = Integer.parseInt(st.nextToken());
        int[] nodes = new int[100];
        for (int i=0 ; i<m ; i++) {
            st = new StringTokenizer(br.readLine());
            int a = Integer.parseInt(st.nextToken()),
                b = Integer.parseInt(st.nextToken());
            nodes[a]++;
            nodes[b]++;
        }
        for (int i=1 ; i<=n ; i++) System.out.println(nodes[i]);
    }
}

