import java.io.*;
import java.util.*;
public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        PrintWriter out = new PrintWriter(System.out);

        final int N = Integer.parseInt(sc.next());
        final int M = Integer.parseInt(sc.next());
        int[] ar = new int[N];

        for (int i = 0; i < M; i++) {
            int a = Integer.parseInt(sc.next());
            int b = Integer.parseInt(sc.next());
            ar[a - 1]++;
            ar[b - 1]++;
        }
        
        for (int i = 0; i < N; i++) {
            out.println(ar[i]);
        }
        
        out.flush();
    }
} import java.io.*; io.* java import java.util.*; util.* java public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        PrintWriter out = new PrintWriter(System.out);

        final int N = Integer.parseInt(sc.next());
        final int M = Integer.parseInt(sc.next());
        int[] ar = new int[N];

        for (int i = 0; i < M; i++) {
            int a = Integer.parseInt(sc.next());
            int b = Integer.parseInt(sc.next());
            ar[a - 1]++;
            ar[b - 1]++;
        }
        
        for (int i = 0; i < N; i++) {
            out.println(ar[i]);
        }
        
        out.flush();
    }
} Main public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        PrintWriter out = new PrintWriter(System.out);

        final int N = Integer.parseInt(sc.next());
        final int M = Integer.parseInt(sc.next());
        int[] ar = new int[N];

        for (int i = 0; i < M; i++) {
            int a = Integer.parseInt(sc.next());
            int b = Integer.parseInt(sc.next());
            ar[a - 1]++;
            ar[b - 1]++;
        }
        
        for (int i = 0; i < N; i++) {
            out.println(ar[i]);
        }
        
        out.flush();
    } main {
        Scanner sc = new Scanner(System.in);
        PrintWriter out = new PrintWriter(System.out);

        final int N = Integer.parseInt(sc.next());
        final int M = Integer.parseInt(sc.next());
        int[] ar = new int[N];

        for (int i = 0; i < M; i++) {
            int a = Integer.parseInt(sc.next());
            int b = Integer.parseInt(sc.next());
            ar[a - 1]++;
            ar[b - 1]++;
        }
        
        for (int i = 0; i < N; i++) {
            out.println(ar[i]);
        }
        
        out.flush();
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) PrintWriter out = new PrintWriter(System.out); out new PrintWriter(System.out) final int N = Integer.parseInt(sc.next()); N Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc final int M = Integer.parseInt(sc.next()); M Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc int[] ar = new int[N]; ar new int[N] N for (int i = 0; i < M; i++) {
            int a = Integer.parseInt(sc.next());
            int b = Integer.parseInt(sc.next());
            ar[a - 1]++;
            ar[b - 1]++;
        } int i = 0; int i = 0; i 0 i < M i M i++ i++ i {
            int a = Integer.parseInt(sc.next());
            int b = Integer.parseInt(sc.next());
            ar[a - 1]++;
            ar[b - 1]++;
        } {
            int a = Integer.parseInt(sc.next());
            int b = Integer.parseInt(sc.next());
            ar[a - 1]++;
            ar[b - 1]++;
        } int a = Integer.parseInt(sc.next()); a Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc int b = Integer.parseInt(sc.next()); b Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc ar[a - 1]++ ar[a - 1] ar a - 1 a 1 ar[b - 1]++ ar[b - 1] ar b - 1 b 1 for (int i = 0; i < N; i++) {
            out.println(ar[i]);
        } int i = 0; int i = 0; i 0 i < N i N i++ i++ i {
            out.println(ar[i]);
        } {
            out.println(ar[i]);
        } out.println(ar[i]) out.println out ar[i] ar i out.flush() out.flush out String[] args args public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        PrintWriter out = new PrintWriter(System.out);

        final int N = Integer.parseInt(sc.next());
        final int M = Integer.parseInt(sc.next());
        int[] ar = new int[N];

        for (int i = 0; i < M; i++) {
            int a = Integer.parseInt(sc.next());
            int b = Integer.parseInt(sc.next());
            ar[a - 1]++;
            ar[b - 1]++;
        }
        
        for (int i = 0; i < N; i++) {
            out.println(ar[i]);
        }
        
        out.flush();
    }
} public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        PrintWriter out = new PrintWriter(System.out);

        final int N = Integer.parseInt(sc.next());
        final int M = Integer.parseInt(sc.next());
        int[] ar = new int[N];

        for (int i = 0; i < M; i++) {
            int a = Integer.parseInt(sc.next());
            int b = Integer.parseInt(sc.next());
            ar[a - 1]++;
            ar[b - 1]++;
        }
        
        for (int i = 0; i < N; i++) {
            out.println(ar[i]);
        }
        
        out.flush();
    }
} Main
import java.io.*;
import java.util.*;
public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        PrintWriter out = new PrintWriter(System.out);

        final int N = Integer.parseInt(sc.next());
        final int M = Integer.parseInt(sc.next());
        int[] ar = new int[N];

        for (int i = 0; i < M; i++) {
            int a = Integer.parseInt(sc.next());
            int b = Integer.parseInt(sc.next());
            ar[a - 1]++;
            ar[b - 1]++;
        }
        
        for (int i = 0; i < N; i++) {
            out.println(ar[i]);
        }
        
        out.flush();
    }
}