import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        try (Scanner sc = new Scanner(System.in);) {
            solve(sc);
        }
    }

    public static void solve(Scanner sc) {
        int n = sc.nextInt();
        int m = sc.nextInt();
        int[] count = new int[n];
        for (int i = 0; i < m; i++) {
            int a1 = sc.nextInt() - 1;
            int a2 = sc.nextInt() - 1;
            count[a1]++;
            count[a2]++;
        }
        
        for (int a : count) {
            System.out.println(a);
        }
    }
} import java.util.Scanner; Scanner java.util public class Main {
    public static void main(String[] args) {
        try (Scanner sc = new Scanner(System.in);) {
            solve(sc);
        }
    }

    public static void solve(Scanner sc) {
        int n = sc.nextInt();
        int m = sc.nextInt();
        int[] count = new int[n];
        for (int i = 0; i < m; i++) {
            int a1 = sc.nextInt() - 1;
            int a2 = sc.nextInt() - 1;
            count[a1]++;
            count[a2]++;
        }
        
        for (int a : count) {
            System.out.println(a);
        }
    }
} Main public static void main(String[] args) {
        try (Scanner sc = new Scanner(System.in);) {
            solve(sc);
        }
    } main {
        try (Scanner sc = new Scanner(System.in);) {
            solve(sc);
        }
    } try (Scanner sc = new Scanner(System.in);) {
            solve(sc);
        } {
            solve(sc);
        } Scanner sc = new Scanner(System.in) Scanner sc = new Scanner(System.in) new Scanner(System.in) solve(sc) solve sc String[] args args public static void solve(Scanner sc) {
        int n = sc.nextInt();
        int m = sc.nextInt();
        int[] count = new int[n];
        for (int i = 0; i < m; i++) {
            int a1 = sc.nextInt() - 1;
            int a2 = sc.nextInt() - 1;
            count[a1]++;
            count[a2]++;
        }
        
        for (int a : count) {
            System.out.println(a);
        }
    } solve {
        int n = sc.nextInt();
        int m = sc.nextInt();
        int[] count = new int[n];
        for (int i = 0; i < m; i++) {
            int a1 = sc.nextInt() - 1;
            int a2 = sc.nextInt() - 1;
            count[a1]++;
            count[a2]++;
        }
        
        for (int a : count) {
            System.out.println(a);
        }
    } int n = sc.nextInt(); n sc.nextInt() sc.nextInt sc int m = sc.nextInt(); m sc.nextInt() sc.nextInt sc int[] count = new int[n]; count new int[n] n for (int i = 0; i < m; i++) {
            int a1 = sc.nextInt() - 1;
            int a2 = sc.nextInt() - 1;
            count[a1]++;
            count[a2]++;
        } int i = 0; int i = 0; i 0 i < m i m i++ i++ i {
            int a1 = sc.nextInt() - 1;
            int a2 = sc.nextInt() - 1;
            count[a1]++;
            count[a2]++;
        } {
            int a1 = sc.nextInt() - 1;
            int a2 = sc.nextInt() - 1;
            count[a1]++;
            count[a2]++;
        } int a1 = sc.nextInt() - 1; a1 sc.nextInt() - 1 sc.nextInt() sc.nextInt sc 1 int a2 = sc.nextInt() - 1; a2 sc.nextInt() - 1 sc.nextInt() sc.nextInt sc 1 count[a1]++ count[a1] count a1 count[a2]++ count[a2] count a2 for (int a : count) {
            System.out.println(a);
        } int a count {
            System.out.println(a);
        } {
            System.out.println(a);
        } System.out.println(a) System.out.println System.out System System.out a Scanner sc sc public class Main {
    public static void main(String[] args) {
        try (Scanner sc = new Scanner(System.in);) {
            solve(sc);
        }
    }

    public static void solve(Scanner sc) {
        int n = sc.nextInt();
        int m = sc.nextInt();
        int[] count = new int[n];
        for (int i = 0; i < m; i++) {
            int a1 = sc.nextInt() - 1;
            int a2 = sc.nextInt() - 1;
            count[a1]++;
            count[a2]++;
        }
        
        for (int a : count) {
            System.out.println(a);
        }
    }
} public class Main {
    public static void main(String[] args) {
        try (Scanner sc = new Scanner(System.in);) {
            solve(sc);
        }
    }

    public static void solve(Scanner sc) {
        int n = sc.nextInt();
        int m = sc.nextInt();
        int[] count = new int[n];
        for (int i = 0; i < m; i++) {
            int a1 = sc.nextInt() - 1;
            int a2 = sc.nextInt() - 1;
            count[a1]++;
            count[a2]++;
        }
        
        for (int a : count) {
            System.out.println(a);
        }
    }
} Main
import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        try (Scanner sc = new Scanner(System.in);) {
            solve(sc);
        }
    }

    public static void solve(Scanner sc) {
        int n = sc.nextInt();
        int m = sc.nextInt();
        int[] count = new int[n];
        for (int i = 0; i < m; i++) {
            int a1 = sc.nextInt() - 1;
            int a2 = sc.nextInt() - 1;
            count[a1]++;
            count[a2]++;
        }
        
        for (int a : count) {
            System.out.println(a);
        }
    }
}