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[2][M];
        int[] cnt = new int[N];
        for(int i = 0; i < M; i++){
            a[0][i] = sc.nextInt();
            a[1][i] = sc.nextInt();
            cnt[a[0][i]-1]++;
            cnt[a[1][i]-1]++;
        }
        sc.close();
        for(int i = 0; i < N; i++){
            System.out.println(cnt[i]);
        }
    }
} 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[2][M];
        int[] cnt = new int[N];
        for(int i = 0; i < M; i++){
            a[0][i] = sc.nextInt();
            a[1][i] = sc.nextInt();
            cnt[a[0][i]-1]++;
            cnt[a[1][i]-1]++;
        }
        sc.close();
        for(int i = 0; i < N; i++){
            System.out.println(cnt[i]);
        }
    }
} 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[2][M];
        int[] cnt = new int[N];
        for(int i = 0; i < M; i++){
            a[0][i] = sc.nextInt();
            a[1][i] = sc.nextInt();
            cnt[a[0][i]-1]++;
            cnt[a[1][i]-1]++;
        }
        sc.close();
        for(int i = 0; i < N; i++){
            System.out.println(cnt[i]);
        }
    } main {
        Scanner sc = new Scanner(System.in);
        
        int N = sc.nextInt();
        int M = sc.nextInt();
        int[][] a = new int[2][M];
        int[] cnt = new int[N];
        for(int i = 0; i < M; i++){
            a[0][i] = sc.nextInt();
            a[1][i] = sc.nextInt();
            cnt[a[0][i]-1]++;
            cnt[a[1][i]-1]++;
        }
        sc.close();
        for(int i = 0; i < N; i++){
            System.out.println(cnt[i]);
        }
    } 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[2][M]; a new int[2][M] 2 M int[] cnt = new int[N]; cnt new int[N] N for(int i = 0; i < M; i++){
            a[0][i] = sc.nextInt();
            a[1][i] = sc.nextInt();
            cnt[a[0][i]-1]++;
            cnt[a[1][i]-1]++;
        } int i = 0; int i = 0; i 0 i < M i M i++ i++ i {
            a[0][i] = sc.nextInt();
            a[1][i] = sc.nextInt();
            cnt[a[0][i]-1]++;
            cnt[a[1][i]-1]++;
        } {
            a[0][i] = sc.nextInt();
            a[1][i] = sc.nextInt();
            cnt[a[0][i]-1]++;
            cnt[a[1][i]-1]++;
        } a[0][i] = sc.nextInt() a[0][i] a[0] a 0 i sc.nextInt() sc.nextInt sc a[1][i] = sc.nextInt() a[1][i] a[1] a 1 i sc.nextInt() sc.nextInt sc cnt[a[0][i]-1]++ cnt[a[0][i]-1] cnt a[0][i]-1 a[0][i] a[0] a 0 i 1 cnt[a[1][i]-1]++ cnt[a[1][i]-1] cnt a[1][i]-1 a[1][i] a[1] a 1 i 1 sc.close() sc.close sc for(int i = 0; i < N; i++){
            System.out.println(cnt[i]);
        } int i = 0; int i = 0; i 0 i < N i N i++ i++ i {
            System.out.println(cnt[i]);
        } {
            System.out.println(cnt[i]);
        } System.out.println(cnt[i]) System.out.println System.out System System.out cnt[i] cnt i 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[2][M];
        int[] cnt = new int[N];
        for(int i = 0; i < M; i++){
            a[0][i] = sc.nextInt();
            a[1][i] = sc.nextInt();
            cnt[a[0][i]-1]++;
            cnt[a[1][i]-1]++;
        }
        sc.close();
        for(int i = 0; i < N; i++){
            System.out.println(cnt[i]);
        }
    }
} 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[2][M];
        int[] cnt = new int[N];
        for(int i = 0; i < M; i++){
            a[0][i] = sc.nextInt();
            a[1][i] = sc.nextInt();
            cnt[a[0][i]-1]++;
            cnt[a[1][i]-1]++;
        }
        sc.close();
        for(int i = 0; i < N; i++){
            System.out.println(cnt[i]);
        }
    }
} 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[2][M];
        int[] cnt = new int[N];
        for(int i = 0; i < M; i++){
            a[0][i] = sc.nextInt();
            a[1][i] = sc.nextInt();
            cnt[a[0][i]-1]++;
            cnt[a[1][i]-1]++;
        }
        sc.close();
        for(int i = 0; i < N; i++){
            System.out.println(cnt[i]);
        }
    }
}