import java.util.Scanner;

/**
 * @author varun on 7/1/2018
 * @project CompetitiveProgramming
 */
public class Main {
    public static void main(String args[]) {
        Scanner scanner = new Scanner(System.in);
        int n = scanner.nextInt();
        int m  = scanner.nextInt();
        int[] cities = new int[n];
        for (int i = 0; i < m; i++) {
            int c1 = scanner.nextInt(), c2 = scanner.nextInt();
            cities[c1-1]++;
            cities[c2-1]++;
        }
        for (int city : cities) System.out.println(city);
    }
} import java.util.Scanner; Scanner java.util public class Main {
    public static void main(String args[]) {
        Scanner scanner = new Scanner(System.in);
        int n = scanner.nextInt();
        int m  = scanner.nextInt();
        int[] cities = new int[n];
        for (int i = 0; i < m; i++) {
            int c1 = scanner.nextInt(), c2 = scanner.nextInt();
            cities[c1-1]++;
            cities[c2-1]++;
        }
        for (int city : cities) System.out.println(city);
    }
} Main public static void main(String args[]) {
        Scanner scanner = new Scanner(System.in);
        int n = scanner.nextInt();
        int m  = scanner.nextInt();
        int[] cities = new int[n];
        for (int i = 0; i < m; i++) {
            int c1 = scanner.nextInt(), c2 = scanner.nextInt();
            cities[c1-1]++;
            cities[c2-1]++;
        }
        for (int city : cities) System.out.println(city);
    } main {
        Scanner scanner = new Scanner(System.in);
        int n = scanner.nextInt();
        int m  = scanner.nextInt();
        int[] cities = new int[n];
        for (int i = 0; i < m; i++) {
            int c1 = scanner.nextInt(), c2 = scanner.nextInt();
            cities[c1-1]++;
            cities[c2-1]++;
        }
        for (int city : cities) System.out.println(city);
    } Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) int n = scanner.nextInt(); n scanner.nextInt() scanner.nextInt scanner int m  = scanner.nextInt(); m scanner.nextInt() scanner.nextInt scanner int[] cities = new int[n]; cities new int[n] n for (int i = 0; i < m; i++) {
            int c1 = scanner.nextInt(), c2 = scanner.nextInt();
            cities[c1-1]++;
            cities[c2-1]++;
        } int i = 0; int i = 0; i 0 i < m i m i++ i++ i {
            int c1 = scanner.nextInt(), c2 = scanner.nextInt();
            cities[c1-1]++;
            cities[c2-1]++;
        } {
            int c1 = scanner.nextInt(), c2 = scanner.nextInt();
            cities[c1-1]++;
            cities[c2-1]++;
        } int c1 = scanner.nextInt() c1 scanner.nextInt() scanner.nextInt scanner c2 = scanner.nextInt(); c2 scanner.nextInt() scanner.nextInt scanner cities[c1-1]++ cities[c1-1] cities c1-1 c1 1 cities[c2-1]++ cities[c2-1] cities c2-1 c2 1 for (int city : cities) System.out.println(city); int city cities System.out.println(city); System.out.println(city) System.out.println System.out System System.out city String args[] args public class Main {
    public static void main(String args[]) {
        Scanner scanner = new Scanner(System.in);
        int n = scanner.nextInt();
        int m  = scanner.nextInt();
        int[] cities = new int[n];
        for (int i = 0; i < m; i++) {
            int c1 = scanner.nextInt(), c2 = scanner.nextInt();
            cities[c1-1]++;
            cities[c2-1]++;
        }
        for (int city : cities) System.out.println(city);
    }
} public class Main {
    public static void main(String args[]) {
        Scanner scanner = new Scanner(System.in);
        int n = scanner.nextInt();
        int m  = scanner.nextInt();
        int[] cities = new int[n];
        for (int i = 0; i < m; i++) {
            int c1 = scanner.nextInt(), c2 = scanner.nextInt();
            cities[c1-1]++;
            cities[c2-1]++;
        }
        for (int city : cities) System.out.println(city);
    }
} Main
import java.util.Scanner;

/**
 * @author varun on 7/1/2018
 * @project CompetitiveProgramming
 */
public class Main {
    public static void main(String args[]) {
        Scanner scanner = new Scanner(System.in);
        int n = scanner.nextInt();
        int m  = scanner.nextInt();
        int[] cities = new int[n];
        for (int i = 0; i < m; i++) {
            int c1 = scanner.nextInt(), c2 = scanner.nextInt();
            cities[c1-1]++;
            cities[c2-1]++;
        }
        for (int city : cities) System.out.println(city);
    }
}
