import java.util.Scanner;
public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int city = sc.nextInt(), road = sc.nextInt();
        int[] result = new int[city];
        while(sc.hasNextInt()) {
            int i = sc.nextInt();
            result[i - 1] += 1;
        }
        for (int r : result) {
            System.out.println(r);
        }
    }
} import java.util.Scanner; Scanner java.util public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int city = sc.nextInt(), road = sc.nextInt();
        int[] result = new int[city];
        while(sc.hasNextInt()) {
            int i = sc.nextInt();
            result[i - 1] += 1;
        }
        for (int r : result) {
            System.out.println(r);
        }
    }
} Main public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int city = sc.nextInt(), road = sc.nextInt();
        int[] result = new int[city];
        while(sc.hasNextInt()) {
            int i = sc.nextInt();
            result[i - 1] += 1;
        }
        for (int r : result) {
            System.out.println(r);
        }
    } main {
        Scanner sc = new Scanner(System.in);
        int city = sc.nextInt(), road = sc.nextInt();
        int[] result = new int[city];
        while(sc.hasNextInt()) {
            int i = sc.nextInt();
            result[i - 1] += 1;
        }
        for (int r : result) {
            System.out.println(r);
        }
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int city = sc.nextInt() city sc.nextInt() sc.nextInt sc road = sc.nextInt(); road sc.nextInt() sc.nextInt sc int[] result = new int[city]; result new int[city] city while(sc.hasNextInt()) {
            int i = sc.nextInt();
            result[i - 1] += 1;
        } sc.hasNextInt() sc.hasNextInt sc {
            int i = sc.nextInt();
            result[i - 1] += 1;
        } int i = sc.nextInt(); i sc.nextInt() sc.nextInt sc result[i - 1] += 1 result[i - 1] result i - 1 i 1 1 for (int r : result) {
            System.out.println(r);
        } int r result {
            System.out.println(r);
        } {
            System.out.println(r);
        } System.out.println(r) System.out.println System.out System System.out r String[] args args public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int city = sc.nextInt(), road = sc.nextInt();
        int[] result = new int[city];
        while(sc.hasNextInt()) {
            int i = sc.nextInt();
            result[i - 1] += 1;
        }
        for (int r : result) {
            System.out.println(r);
        }
    }
} public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int city = sc.nextInt(), road = sc.nextInt();
        int[] result = new int[city];
        while(sc.hasNextInt()) {
            int i = sc.nextInt();
            result[i - 1] += 1;
        }
        for (int r : result) {
            System.out.println(r);
        }
    }
} Main
import java.util.Scanner;
public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int city = sc.nextInt(), road = sc.nextInt();
        int[] result = new int[city];
        while(sc.hasNextInt()) {
            int i = sc.nextInt();
            result[i - 1] += 1;
        }
        for (int r : result) {
            System.out.println(r);
        }
    }
}
