import java.util.*;
import java.io.*;
import java.math.*;
 
public class Main {
    public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int m = sc.nextInt();
        int[] ans = new int[n];
        for(int i = 0; i < m; i++){
            int b1 = sc.nextInt()-1;
            int b2 = sc.nextInt()-1;
            ans[b1]++;
            ans[b2]++;
        }
        for(int a : ans){
            System.out.println(a);
        }
    }
} import java.util.*; util.* java import java.io.*; io.* java import java.math.*; math.* java public class Main {
    public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int m = sc.nextInt();
        int[] ans = new int[n];
        for(int i = 0; i < m; i++){
            int b1 = sc.nextInt()-1;
            int b2 = sc.nextInt()-1;
            ans[b1]++;
            ans[b2]++;
        }
        for(int a : ans){
            System.out.println(a);
        }
    }
} Main public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int m = sc.nextInt();
        int[] ans = new int[n];
        for(int i = 0; i < m; i++){
            int b1 = sc.nextInt()-1;
            int b2 = sc.nextInt()-1;
            ans[b1]++;
            ans[b2]++;
        }
        for(int a : ans){
            System.out.println(a);
        }
    } main {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int m = sc.nextInt();
        int[] ans = new int[n];
        for(int i = 0; i < m; i++){
            int b1 = sc.nextInt()-1;
            int b2 = sc.nextInt()-1;
            ans[b1]++;
            ans[b2]++;
        }
        for(int a : ans){
            System.out.println(a);
        }
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int n = sc.nextInt(); n sc.nextInt() sc.nextInt sc int m = sc.nextInt(); m sc.nextInt() sc.nextInt sc int[] ans = new int[n]; ans new int[n] n for(int i = 0; i < m; i++){
            int b1 = sc.nextInt()-1;
            int b2 = sc.nextInt()-1;
            ans[b1]++;
            ans[b2]++;
        } int i = 0; int i = 0; i 0 i < m i m i++ i++ i {
            int b1 = sc.nextInt()-1;
            int b2 = sc.nextInt()-1;
            ans[b1]++;
            ans[b2]++;
        } {
            int b1 = sc.nextInt()-1;
            int b2 = sc.nextInt()-1;
            ans[b1]++;
            ans[b2]++;
        } int b1 = sc.nextInt()-1; b1 sc.nextInt()-1 sc.nextInt() sc.nextInt sc 1 int b2 = sc.nextInt()-1; b2 sc.nextInt()-1 sc.nextInt() sc.nextInt sc 1 ans[b1]++ ans[b1] ans b1 ans[b2]++ ans[b2] ans b2 for(int a : ans){
            System.out.println(a);
        } int a ans {
            System.out.println(a);
        } {
            System.out.println(a);
        } System.out.println(a) System.out.println System.out System System.out a String[] args args public class Main {
    public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int m = sc.nextInt();
        int[] ans = new int[n];
        for(int i = 0; i < m; i++){
            int b1 = sc.nextInt()-1;
            int b2 = sc.nextInt()-1;
            ans[b1]++;
            ans[b2]++;
        }
        for(int a : ans){
            System.out.println(a);
        }
    }
} public class Main {
    public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int m = sc.nextInt();
        int[] ans = new int[n];
        for(int i = 0; i < m; i++){
            int b1 = sc.nextInt()-1;
            int b2 = sc.nextInt()-1;
            ans[b1]++;
            ans[b2]++;
        }
        for(int a : ans){
            System.out.println(a);
        }
    }
} Main
import java.util.*;
import java.io.*;
import java.math.*;
 
public class Main {
    public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int m = sc.nextInt();
        int[] ans = new int[n];
        for(int i = 0; i < m; i++){
            int b1 = sc.nextInt()-1;
            int b2 = sc.nextInt()-1;
            ans[b1]++;
            ans[b2]++;
        }
        for(int a : ans){
            System.out.println(a);
        }
    }
}