//package com.zhangyong.algorithm;

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

public class Main {

    FastScanner in;
    PrintWriter out;

    class FastScanner {

        BufferedReader br;
        StringTokenizer st;

        private FastScanner(File f) {
            try {
                br = new BufferedReader(new FileReader(f));
            } catch (FileNotFoundException e) {
                e.printStackTrace();
            }
        }

        private FastScanner(InputStream f) {
            br = new BufferedReader(new InputStreamReader(f));
        }

        String next() {
            while (st == null || !st.hasMoreElements()) {
                try {
                    st = new StringTokenizer(br.readLine());
                } catch (IOException e) {
                    e.printStackTrace();
                }
            }
            return st.nextToken();
        }

        int nextInt() {
            return Integer.parseInt(next());
        }

        long nextLong() {
            return Long.parseLong(next());
        }

        double nextDouble() {
            return Double.parseDouble(next());
        }

    }


    private void solve() {
        int n, m;
        n = in.nextInt();
        m = in.nextInt();
        int[] arr = new int[n+1];
        int l, r;
        for (int i = 0; i < m; i++) {
            l = in.nextInt();
            r = in.nextInt();
            arr[l] += 1;
            arr[r] += 1;
        }
        for (int i = 1; i <= n; i++) {
            out.println(arr[i]);
        }
    }

    private void run() {
        in = new FastScanner(System.in);
        out = new PrintWriter(System.out);
        solve();
        out.close();
    }

    public static void main(String[] args) {
        new Main().run();
    }
} import java.io.*; io.* java import java.util.StringTokenizer; StringTokenizer java.util public class Main {

    FastScanner in;
    PrintWriter out;

    class FastScanner {

        BufferedReader br;
        StringTokenizer st;

        private FastScanner(File f) {
            try {
                br = new BufferedReader(new FileReader(f));
            } catch (FileNotFoundException e) {
                e.printStackTrace();
            }
        }

        private FastScanner(InputStream f) {
            br = new BufferedReader(new InputStreamReader(f));
        }

        String next() {
            while (st == null || !st.hasMoreElements()) {
                try {
                    st = new StringTokenizer(br.readLine());
                } catch (IOException e) {
                    e.printStackTrace();
                }
            }
            return st.nextToken();
        }

        int nextInt() {
            return Integer.parseInt(next());
        }

        long nextLong() {
            return Long.parseLong(next());
        }

        double nextDouble() {
            return Double.parseDouble(next());
        }

    }


    private void solve() {
        int n, m;
        n = in.nextInt();
        m = in.nextInt();
        int[] arr = new int[n+1];
        int l, r;
        for (int i = 0; i < m; i++) {
            l = in.nextInt();
            r = in.nextInt();
            arr[l] += 1;
            arr[r] += 1;
        }
        for (int i = 1; i <= n; i++) {
            out.println(arr[i]);
        }
    }

    private void run() {
        in = new FastScanner(System.in);
        out = new PrintWriter(System.out);
        solve();
        out.close();
    }

    public static void main(String[] args) {
        new Main().run();
    }
} Main FastScanner in; in PrintWriter out; out private void solve() {
        int n, m;
        n = in.nextInt();
        m = in.nextInt();
        int[] arr = new int[n+1];
        int l, r;
        for (int i = 0; i < m; i++) {
            l = in.nextInt();
            r = in.nextInt();
            arr[l] += 1;
            arr[r] += 1;
        }
        for (int i = 1; i <= n; i++) {
            out.println(arr[i]);
        }
    } solve {
        int n, m;
        n = in.nextInt();
        m = in.nextInt();
        int[] arr = new int[n+1];
        int l, r;
        for (int i = 0; i < m; i++) {
            l = in.nextInt();
            r = in.nextInt();
            arr[l] += 1;
            arr[r] += 1;
        }
        for (int i = 1; i <= n; i++) {
            out.println(arr[i]);
        }
    } int n n m; m n = in.nextInt() n in.nextInt() in.nextInt in m = in.nextInt() m in.nextInt() in.nextInt in int[] arr = new int[n+1]; arr new int[n+1] n+1 n 1 int l l r; r for (int i = 0; i < m; i++) {
            l = in.nextInt();
            r = in.nextInt();
            arr[l] += 1;
            arr[r] += 1;
        } int i = 0; int i = 0; i 0 i < m i m i++ i++ i {
            l = in.nextInt();
            r = in.nextInt();
            arr[l] += 1;
            arr[r] += 1;
        } {
            l = in.nextInt();
            r = in.nextInt();
            arr[l] += 1;
            arr[r] += 1;
        } l = in.nextInt() l in.nextInt() in.nextInt in r = in.nextInt() r in.nextInt() in.nextInt in arr[l] += 1 arr[l] arr l 1 arr[r] += 1 arr[r] arr r 1 for (int i = 1; i <= n; i++) {
            out.println(arr[i]);
        } int i = 1; int i = 1; i 1 i <= n i n i++ i++ i {
            out.println(arr[i]);
        } {
            out.println(arr[i]);
        } out.println(arr[i]) out.println out arr[i] arr i private void run() {
        in = new FastScanner(System.in);
        out = new PrintWriter(System.out);
        solve();
        out.close();
    } run {
        in = new FastScanner(System.in);
        out = new PrintWriter(System.out);
        solve();
        out.close();
    } in = new FastScanner(System.in) in new FastScanner(System.in) out = new PrintWriter(System.out) out new PrintWriter(System.out) solve() solve out.close() out.close out public static void main(String[] args) {
        new Main().run();
    } main {
        new Main().run();
    } new Main().run() new Main().run new Main() String[] args args class FastScanner {

        BufferedReader br;
        StringTokenizer st;

        private FastScanner(File f) {
            try {
                br = new BufferedReader(new FileReader(f));
            } catch (FileNotFoundException e) {
                e.printStackTrace();
            }
        }

        private FastScanner(InputStream f) {
            br = new BufferedReader(new InputStreamReader(f));
        }

        String next() {
            while (st == null || !st.hasMoreElements()) {
                try {
                    st = new StringTokenizer(br.readLine());
                } catch (IOException e) {
                    e.printStackTrace();
                }
            }
            return st.nextToken();
        }

        int nextInt() {
            return Integer.parseInt(next());
        }

        long nextLong() {
            return Long.parseLong(next());
        }

        double nextDouble() {
            return Double.parseDouble(next());
        }

    } FastScanner BufferedReader br; br StringTokenizer st; st private FastScanner(File f) {
            try {
                br = new BufferedReader(new FileReader(f));
            } catch (FileNotFoundException e) {
                e.printStackTrace();
            }
        } FastScanner {
            try {
                br = new BufferedReader(new FileReader(f));
            } catch (FileNotFoundException e) {
                e.printStackTrace();
            }
        } try {
                br = new BufferedReader(new FileReader(f));
            } catch (FileNotFoundException e) {
                e.printStackTrace();
            } catch (FileNotFoundException e) {
                e.printStackTrace();
            } FileNotFoundException e {
                e.printStackTrace();
            } e.printStackTrace() e.printStackTrace e {
                br = new BufferedReader(new FileReader(f));
            } br = new BufferedReader(new FileReader(f)) br new BufferedReader(new FileReader(f)) File f f private FastScanner(InputStream f) {
            br = new BufferedReader(new InputStreamReader(f));
        } FastScanner {
            br = new BufferedReader(new InputStreamReader(f));
        } br = new BufferedReader(new InputStreamReader(f)) br new BufferedReader(new InputStreamReader(f)) InputStream f f String next() {
            while (st == null || !st.hasMoreElements()) {
                try {
                    st = new StringTokenizer(br.readLine());
                } catch (IOException e) {
                    e.printStackTrace();
                }
            }
            return st.nextToken();
        } next {
            while (st == null || !st.hasMoreElements()) {
                try {
                    st = new StringTokenizer(br.readLine());
                } catch (IOException e) {
                    e.printStackTrace();
                }
            }
            return st.nextToken();
        } while (st == null || !st.hasMoreElements()) {
                try {
                    st = new StringTokenizer(br.readLine());
                } catch (IOException e) {
                    e.printStackTrace();
                }
            } st == null || !st.hasMoreElements() st == null st null !st.hasMoreElements() st.hasMoreElements() st.hasMoreElements st {
                try {
                    st = new StringTokenizer(br.readLine());
                } catch (IOException e) {
                    e.printStackTrace();
                }
            } try {
                    st = new StringTokenizer(br.readLine());
                } catch (IOException e) {
                    e.printStackTrace();
                } catch (IOException e) {
                    e.printStackTrace();
                } IOException e {
                    e.printStackTrace();
                } e.printStackTrace() e.printStackTrace e {
                    st = new StringTokenizer(br.readLine());
                } st = new StringTokenizer(br.readLine()) st new StringTokenizer(br.readLine()) return st.nextToken(); st.nextToken() st.nextToken st int nextInt() {
            return Integer.parseInt(next());
        } nextInt {
            return Integer.parseInt(next());
        } return Integer.parseInt(next()); Integer.parseInt(next()) Integer.parseInt Integer next() next long nextLong() {
            return Long.parseLong(next());
        } nextLong {
            return Long.parseLong(next());
        } return Long.parseLong(next()); Long.parseLong(next()) Long.parseLong Long next() next double nextDouble() {
            return Double.parseDouble(next());
        } nextDouble {
            return Double.parseDouble(next());
        } return Double.parseDouble(next()); Double.parseDouble(next()) Double.parseDouble Double next() next public class Main {

    FastScanner in;
    PrintWriter out;

    class FastScanner {

        BufferedReader br;
        StringTokenizer st;

        private FastScanner(File f) {
            try {
                br = new BufferedReader(new FileReader(f));
            } catch (FileNotFoundException e) {
                e.printStackTrace();
            }
        }

        private FastScanner(InputStream f) {
            br = new BufferedReader(new InputStreamReader(f));
        }

        String next() {
            while (st == null || !st.hasMoreElements()) {
                try {
                    st = new StringTokenizer(br.readLine());
                } catch (IOException e) {
                    e.printStackTrace();
                }
            }
            return st.nextToken();
        }

        int nextInt() {
            return Integer.parseInt(next());
        }

        long nextLong() {
            return Long.parseLong(next());
        }

        double nextDouble() {
            return Double.parseDouble(next());
        }

    }


    private void solve() {
        int n, m;
        n = in.nextInt();
        m = in.nextInt();
        int[] arr = new int[n+1];
        int l, r;
        for (int i = 0; i < m; i++) {
            l = in.nextInt();
            r = in.nextInt();
            arr[l] += 1;
            arr[r] += 1;
        }
        for (int i = 1; i <= n; i++) {
            out.println(arr[i]);
        }
    }

    private void run() {
        in = new FastScanner(System.in);
        out = new PrintWriter(System.out);
        solve();
        out.close();
    }

    public static void main(String[] args) {
        new Main().run();
    }
} public class Main {

    FastScanner in;
    PrintWriter out;

    class FastScanner {

        BufferedReader br;
        StringTokenizer st;

        private FastScanner(File f) {
            try {
                br = new BufferedReader(new FileReader(f));
            } catch (FileNotFoundException e) {
                e.printStackTrace();
            }
        }

        private FastScanner(InputStream f) {
            br = new BufferedReader(new InputStreamReader(f));
        }

        String next() {
            while (st == null || !st.hasMoreElements()) {
                try {
                    st = new StringTokenizer(br.readLine());
                } catch (IOException e) {
                    e.printStackTrace();
                }
            }
            return st.nextToken();
        }

        int nextInt() {
            return Integer.parseInt(next());
        }

        long nextLong() {
            return Long.parseLong(next());
        }

        double nextDouble() {
            return Double.parseDouble(next());
        }

    }


    private void solve() {
        int n, m;
        n = in.nextInt();
        m = in.nextInt();
        int[] arr = new int[n+1];
        int l, r;
        for (int i = 0; i < m; i++) {
            l = in.nextInt();
            r = in.nextInt();
            arr[l] += 1;
            arr[r] += 1;
        }
        for (int i = 1; i <= n; i++) {
            out.println(arr[i]);
        }
    }

    private void run() {
        in = new FastScanner(System.in);
        out = new PrintWriter(System.out);
        solve();
        out.close();
    }

    public static void main(String[] args) {
        new Main().run();
    }
} Main
//package com.zhangyong.algorithm;

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

public class Main {

    FastScanner in;
    PrintWriter out;

    class FastScanner {

        BufferedReader br;
        StringTokenizer st;

        private FastScanner(File f) {
            try {
                br = new BufferedReader(new FileReader(f));
            } catch (FileNotFoundException e) {
                e.printStackTrace();
            }
        }

        private FastScanner(InputStream f) {
            br = new BufferedReader(new InputStreamReader(f));
        }

        String next() {
            while (st == null || !st.hasMoreElements()) {
                try {
                    st = new StringTokenizer(br.readLine());
                } catch (IOException e) {
                    e.printStackTrace();
                }
            }
            return st.nextToken();
        }

        int nextInt() {
            return Integer.parseInt(next());
        }

        long nextLong() {
            return Long.parseLong(next());
        }

        double nextDouble() {
            return Double.parseDouble(next());
        }

    }


    private void solve() {
        int n, m;
        n = in.nextInt();
        m = in.nextInt();
        int[] arr = new int[n+1];
        int l, r;
        for (int i = 0; i < m; i++) {
            l = in.nextInt();
            r = in.nextInt();
            arr[l] += 1;
            arr[r] += 1;
        }
        for (int i = 1; i <= n; i++) {
            out.println(arr[i]);
        }
    }

    private void run() {
        in = new FastScanner(System.in);
        out = new PrintWriter(System.out);
        solve();
        out.close();
    }

    public static void main(String[] args) {
        new Main().run();
    }
}
