
import java.util.*;


/**
 * Created by Seiya on 2016/10/16.
 */

public class Main {

    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);

        int[] map = new int[51];

        int n = scanner.nextInt();
        int m = scanner.nextInt();

        for (int i = 0; i < m; i++) {
            int temp = scanner.nextInt();
            map[temp - 1]++;
            temp = scanner.nextInt();
            map[temp - 1]++;
        }

        for (int i = 0; i < n; i++) {
            System.out.println(map[i]);
        }

    } // mainMethod


} // MainClass import java.util.*; util.* java public class Main {

    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);

        int[] map = new int[51];

        int n = scanner.nextInt();
        int m = scanner.nextInt();

        for (int i = 0; i < m; i++) {
            int temp = scanner.nextInt();
            map[temp - 1]++;
            temp = scanner.nextInt();
            map[temp - 1]++;
        }

        for (int i = 0; i < n; i++) {
            System.out.println(map[i]);
        }

    } // mainMethod


} // MainClass Main public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);

        int[] map = new int[51];

        int n = scanner.nextInt();
        int m = scanner.nextInt();

        for (int i = 0; i < m; i++) {
            int temp = scanner.nextInt();
            map[temp - 1]++;
            temp = scanner.nextInt();
            map[temp - 1]++;
        }

        for (int i = 0; i < n; i++) {
            System.out.println(map[i]);
        }

    } // mainMethod main {
        Scanner scanner = new Scanner(System.in);

        int[] map = new int[51];

        int n = scanner.nextInt();
        int m = scanner.nextInt();

        for (int i = 0; i < m; i++) {
            int temp = scanner.nextInt();
            map[temp - 1]++;
            temp = scanner.nextInt();
            map[temp - 1]++;
        }

        for (int i = 0; i < n; i++) {
            System.out.println(map[i]);
        }

    } Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) int[] map = new int[51]; map new int[51] 51 int n = scanner.nextInt(); n scanner.nextInt() scanner.nextInt scanner int m = scanner.nextInt(); m scanner.nextInt() scanner.nextInt scanner for (int i = 0; i < m; i++) {
            int temp = scanner.nextInt();
            map[temp - 1]++;
            temp = scanner.nextInt();
            map[temp - 1]++;
        } int i = 0; int i = 0; i 0 i < m i m i++ i++ i {
            int temp = scanner.nextInt();
            map[temp - 1]++;
            temp = scanner.nextInt();
            map[temp - 1]++;
        } {
            int temp = scanner.nextInt();
            map[temp - 1]++;
            temp = scanner.nextInt();
            map[temp - 1]++;
        } int temp = scanner.nextInt(); temp scanner.nextInt() scanner.nextInt scanner map[temp - 1]++ map[temp - 1] map temp - 1 temp 1 temp = scanner.nextInt() temp scanner.nextInt() scanner.nextInt scanner map[temp - 1]++ map[temp - 1] map temp - 1 temp 1 for (int i = 0; i < n; i++) {
            System.out.println(map[i]);
        } int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
            System.out.println(map[i]);
        } {
            System.out.println(map[i]);
        } System.out.println(map[i]) System.out.println System.out System System.out map[i] map i String[] args args public class Main {

    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);

        int[] map = new int[51];

        int n = scanner.nextInt();
        int m = scanner.nextInt();

        for (int i = 0; i < m; i++) {
            int temp = scanner.nextInt();
            map[temp - 1]++;
            temp = scanner.nextInt();
            map[temp - 1]++;
        }

        for (int i = 0; i < n; i++) {
            System.out.println(map[i]);
        }

    } // mainMethod


} // MainClass public class Main {

    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);

        int[] map = new int[51];

        int n = scanner.nextInt();
        int m = scanner.nextInt();

        for (int i = 0; i < m; i++) {
            int temp = scanner.nextInt();
            map[temp - 1]++;
            temp = scanner.nextInt();
            map[temp - 1]++;
        }

        for (int i = 0; i < n; i++) {
            System.out.println(map[i]);
        }

    } // mainMethod


} // MainClass Main

import java.util.*;


/**
 * Created by Seiya on 2016/10/16.
 */

public class Main {

    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);

        int[] map = new int[51];

        int n = scanner.nextInt();
        int m = scanner.nextInt();

        for (int i = 0; i < m; i++) {
            int temp = scanner.nextInt();
            map[temp - 1]++;
            temp = scanner.nextInt();
            map[temp - 1]++;
        }

        for (int i = 0; i < n; i++) {
            System.out.println(map[i]);
        }

    } // mainMethod


} // MainClass
