import java.util.*;
public class Main{
    public static void main(String[]args){
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        int M = sc.nextInt();
        int a[] = new int[M];
        int b[] = new int[M];
        
        for(int i=0; i<M; i++){
            a[i] = sc.nextInt();
            b[i] = sc.nextInt();
        }
        
        HashMap<Integer, Integer> cnt = new HashMap<Integer, Integer>();
        for(int i=1; i<=N; i++){
        cnt.put(i, 0);
        }
        
        for(int i=0; i<M; i++){
        cnt.put(a[i], cnt.get(a[i])+1);
        cnt.put(b[i], cnt.get(b[i])+1);
        }
        
        for(int key=1; key<N+1; key++){
            int sum = cnt.get(key);
            System.out.println(sum);
        }
        
    }
} import java.util.*; util.* java public class Main{
    public static void main(String[]args){
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        int M = sc.nextInt();
        int a[] = new int[M];
        int b[] = new int[M];
        
        for(int i=0; i<M; i++){
            a[i] = sc.nextInt();
            b[i] = sc.nextInt();
        }
        
        HashMap<Integer, Integer> cnt = new HashMap<Integer, Integer>();
        for(int i=1; i<=N; i++){
        cnt.put(i, 0);
        }
        
        for(int i=0; i<M; i++){
        cnt.put(a[i], cnt.get(a[i])+1);
        cnt.put(b[i], cnt.get(b[i])+1);
        }
        
        for(int key=1; key<N+1; key++){
            int sum = cnt.get(key);
            System.out.println(sum);
        }
        
    }
} Main public static void main(String[]args){
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        int M = sc.nextInt();
        int a[] = new int[M];
        int b[] = new int[M];
        
        for(int i=0; i<M; i++){
            a[i] = sc.nextInt();
            b[i] = sc.nextInt();
        }
        
        HashMap<Integer, Integer> cnt = new HashMap<Integer, Integer>();
        for(int i=1; i<=N; i++){
        cnt.put(i, 0);
        }
        
        for(int i=0; i<M; i++){
        cnt.put(a[i], cnt.get(a[i])+1);
        cnt.put(b[i], cnt.get(b[i])+1);
        }
        
        for(int key=1; key<N+1; key++){
            int sum = cnt.get(key);
            System.out.println(sum);
        }
        
    } main {
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        int M = sc.nextInt();
        int a[] = new int[M];
        int b[] = new int[M];
        
        for(int i=0; i<M; i++){
            a[i] = sc.nextInt();
            b[i] = sc.nextInt();
        }
        
        HashMap<Integer, Integer> cnt = new HashMap<Integer, Integer>();
        for(int i=1; i<=N; i++){
        cnt.put(i, 0);
        }
        
        for(int i=0; i<M; i++){
        cnt.put(a[i], cnt.get(a[i])+1);
        cnt.put(b[i], cnt.get(b[i])+1);
        }
        
        for(int key=1; key<N+1; key++){
            int sum = cnt.get(key);
            System.out.println(sum);
        }
        
    } 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 a[] = new int[M]; a new int[M] M int b[] = new int[M]; b new int[M] M for(int i=0; i<M; i++){
            a[i] = sc.nextInt();
            b[i] = sc.nextInt();
        } int i=0; int i=0; i 0 i<M i M i++ i++ i {
            a[i] = sc.nextInt();
            b[i] = sc.nextInt();
        } {
            a[i] = sc.nextInt();
            b[i] = sc.nextInt();
        } a[i] = sc.nextInt() a[i] a i sc.nextInt() sc.nextInt sc b[i] = sc.nextInt() b[i] b i sc.nextInt() sc.nextInt sc HashMap<Integer, Integer> cnt = new HashMap<Integer, Integer>(); cnt new HashMap<Integer, Integer>() for(int i=1; i<=N; i++){
        cnt.put(i, 0);
        } int i=1; int i=1; i 1 i<=N i N i++ i++ i {
        cnt.put(i, 0);
        } {
        cnt.put(i, 0);
        } cnt.put(i, 0) cnt.put cnt i 0 for(int i=0; i<M; i++){
        cnt.put(a[i], cnt.get(a[i])+1);
        cnt.put(b[i], cnt.get(b[i])+1);
        } int i=0; int i=0; i 0 i<M i M i++ i++ i {
        cnt.put(a[i], cnt.get(a[i])+1);
        cnt.put(b[i], cnt.get(b[i])+1);
        } {
        cnt.put(a[i], cnt.get(a[i])+1);
        cnt.put(b[i], cnt.get(b[i])+1);
        } cnt.put(a[i], cnt.get(a[i])+1) cnt.put cnt a[i] a i cnt.get(a[i])+1 cnt.get(a[i]) cnt.get cnt a[i] a i 1 cnt.put(b[i], cnt.get(b[i])+1) cnt.put cnt b[i] b i cnt.get(b[i])+1 cnt.get(b[i]) cnt.get cnt b[i] b i 1 for(int key=1; key<N+1; key++){
            int sum = cnt.get(key);
            System.out.println(sum);
        } int key=1; int key=1; key 1 key<N+1 key N+1 N 1 key++ key++ key {
            int sum = cnt.get(key);
            System.out.println(sum);
        } {
            int sum = cnt.get(key);
            System.out.println(sum);
        } int sum = cnt.get(key); sum cnt.get(key) cnt.get cnt key System.out.println(sum) System.out.println System.out System System.out sum String[]args args public class Main{
    public static void main(String[]args){
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        int M = sc.nextInt();
        int a[] = new int[M];
        int b[] = new int[M];
        
        for(int i=0; i<M; i++){
            a[i] = sc.nextInt();
            b[i] = sc.nextInt();
        }
        
        HashMap<Integer, Integer> cnt = new HashMap<Integer, Integer>();
        for(int i=1; i<=N; i++){
        cnt.put(i, 0);
        }
        
        for(int i=0; i<M; i++){
        cnt.put(a[i], cnt.get(a[i])+1);
        cnt.put(b[i], cnt.get(b[i])+1);
        }
        
        for(int key=1; key<N+1; key++){
            int sum = cnt.get(key);
            System.out.println(sum);
        }
        
    }
} public class Main{
    public static void main(String[]args){
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        int M = sc.nextInt();
        int a[] = new int[M];
        int b[] = new int[M];
        
        for(int i=0; i<M; i++){
            a[i] = sc.nextInt();
            b[i] = sc.nextInt();
        }
        
        HashMap<Integer, Integer> cnt = new HashMap<Integer, Integer>();
        for(int i=1; i<=N; i++){
        cnt.put(i, 0);
        }
        
        for(int i=0; i<M; i++){
        cnt.put(a[i], cnt.get(a[i])+1);
        cnt.put(b[i], cnt.get(b[i])+1);
        }
        
        for(int key=1; key<N+1; key++){
            int sum = cnt.get(key);
            System.out.println(sum);
        }
        
    }
} Main
import java.util.*;
public class Main{
    public static void main(String[]args){
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        int M = sc.nextInt();
        int a[] = new int[M];
        int b[] = new int[M];
        
        for(int i=0; i<M; i++){
            a[i] = sc.nextInt();
            b[i] = sc.nextInt();
        }
        
        HashMap<Integer, Integer> cnt = new HashMap<Integer, Integer>();
        for(int i=1; i<=N; i++){
        cnt.put(i, 0);
        }
        
        for(int i=0; i<M; i++){
        cnt.put(a[i], cnt.get(a[i])+1);
        cnt.put(b[i], cnt.get(b[i])+1);
        }
        
        for(int key=1; key<N+1; key++){
            int sum = cnt.get(key);
            System.out.println(sum);
        }
        
    }
}