import java.util.*;
import java.lang.*;
import java.io.*;

public class Main {
    public static void main(String args[]) {
        Scanner scan = new Scanner(System.in);
        
        int n = scan.nextInt();
        int m = scan.nextInt();
        int[] arr = new int[n];
        while(m-- > 0){
            arr[scan.nextInt() - 1]++;
            arr[scan.nextInt() - 1]++;
        }
        for(int i : arr) System.out.println(i);
        
    }
} import java.util.*; util.* java import java.lang.*; lang.* java import java.io.*; io.* java public class Main {
    public static void main(String args[]) {
        Scanner scan = new Scanner(System.in);
        
        int n = scan.nextInt();
        int m = scan.nextInt();
        int[] arr = new int[n];
        while(m-- > 0){
            arr[scan.nextInt() - 1]++;
            arr[scan.nextInt() - 1]++;
        }
        for(int i : arr) System.out.println(i);
        
    }
} Main public static void main(String args[]) {
        Scanner scan = new Scanner(System.in);
        
        int n = scan.nextInt();
        int m = scan.nextInt();
        int[] arr = new int[n];
        while(m-- > 0){
            arr[scan.nextInt() - 1]++;
            arr[scan.nextInt() - 1]++;
        }
        for(int i : arr) System.out.println(i);
        
    } main {
        Scanner scan = new Scanner(System.in);
        
        int n = scan.nextInt();
        int m = scan.nextInt();
        int[] arr = new int[n];
        while(m-- > 0){
            arr[scan.nextInt() - 1]++;
            arr[scan.nextInt() - 1]++;
        }
        for(int i : arr) System.out.println(i);
        
    } Scanner scan = new Scanner(System.in); scan new Scanner(System.in) int n = scan.nextInt(); n scan.nextInt() scan.nextInt scan int m = scan.nextInt(); m scan.nextInt() scan.nextInt scan int[] arr = new int[n]; arr new int[n] n while(m-- > 0){
            arr[scan.nextInt() - 1]++;
            arr[scan.nextInt() - 1]++;
        } m-- > 0 m-- m 0 {
            arr[scan.nextInt() - 1]++;
            arr[scan.nextInt() - 1]++;
        } arr[scan.nextInt() - 1]++ arr[scan.nextInt() - 1] arr scan.nextInt() - 1 scan.nextInt() scan.nextInt scan 1 arr[scan.nextInt() - 1]++ arr[scan.nextInt() - 1] arr scan.nextInt() - 1 scan.nextInt() scan.nextInt scan 1 for(int i : arr) System.out.println(i); int i arr System.out.println(i); System.out.println(i) System.out.println System.out System System.out i String args[] args public class Main {
    public static void main(String args[]) {
        Scanner scan = new Scanner(System.in);
        
        int n = scan.nextInt();
        int m = scan.nextInt();
        int[] arr = new int[n];
        while(m-- > 0){
            arr[scan.nextInt() - 1]++;
            arr[scan.nextInt() - 1]++;
        }
        for(int i : arr) System.out.println(i);
        
    }
} public class Main {
    public static void main(String args[]) {
        Scanner scan = new Scanner(System.in);
        
        int n = scan.nextInt();
        int m = scan.nextInt();
        int[] arr = new int[n];
        while(m-- > 0){
            arr[scan.nextInt() - 1]++;
            arr[scan.nextInt() - 1]++;
        }
        for(int i : arr) System.out.println(i);
        
    }
} Main
import java.util.*;
import java.lang.*;
import java.io.*;

public class Main {
    public static void main(String args[]) {
        Scanner scan = new Scanner(System.in);
        
        int n = scan.nextInt();
        int m = scan.nextInt();
        int[] arr = new int[n];
        while(m-- > 0){
            arr[scan.nextInt() - 1]++;
            arr[scan.nextInt() - 1]++;
        }
        for(int i : arr) System.out.println(i);
        
    }
}
