import java.util.Scanner;
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+1];
        int[] b=new int[M+1];
        int[] count=new int[N+1];
        for(int i=0;i<M;i++){
            a[i+1]=sc.nextInt();
            b[i+1]=sc.nextInt();
        }
        for(int i=0;i<N;i++){
            count[i+1]=0;
        }
        for(int i=0;i<M;i++){
            count[a[i+1]]++;
            count[b[i+1]]++;
        }
        for(int i=0;i<N;i++){
            System.out.println(count[i+1]);
        }
    }
} import java.util.Scanner; Scanner java.util 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+1];
        int[] b=new int[M+1];
        int[] count=new int[N+1];
        for(int i=0;i<M;i++){
            a[i+1]=sc.nextInt();
            b[i+1]=sc.nextInt();
        }
        for(int i=0;i<N;i++){
            count[i+1]=0;
        }
        for(int i=0;i<M;i++){
            count[a[i+1]]++;
            count[b[i+1]]++;
        }
        for(int i=0;i<N;i++){
            System.out.println(count[i+1]);
        }
    }
} 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+1];
        int[] b=new int[M+1];
        int[] count=new int[N+1];
        for(int i=0;i<M;i++){
            a[i+1]=sc.nextInt();
            b[i+1]=sc.nextInt();
        }
        for(int i=0;i<N;i++){
            count[i+1]=0;
        }
        for(int i=0;i<M;i++){
            count[a[i+1]]++;
            count[b[i+1]]++;
        }
        for(int i=0;i<N;i++){
            System.out.println(count[i+1]);
        }
    } main {
        Scanner sc=new Scanner(System.in);
        int N=sc.nextInt();
        int M=sc.nextInt();
        int[] a=new int[M+1];
        int[] b=new int[M+1];
        int[] count=new int[N+1];
        for(int i=0;i<M;i++){
            a[i+1]=sc.nextInt();
            b[i+1]=sc.nextInt();
        }
        for(int i=0;i<N;i++){
            count[i+1]=0;
        }
        for(int i=0;i<M;i++){
            count[a[i+1]]++;
            count[b[i+1]]++;
        }
        for(int i=0;i<N;i++){
            System.out.println(count[i+1]);
        }
    } 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+1]; a new int[M+1] M+1 M 1 int[] b=new int[M+1]; b new int[M+1] M+1 M 1 int[] count=new int[N+1]; count new int[N+1] N+1 N 1 for(int i=0;i<M;i++){
            a[i+1]=sc.nextInt();
            b[i+1]=sc.nextInt();
        } int i=0; int i=0; i 0 i<M i M i++ i++ i {
            a[i+1]=sc.nextInt();
            b[i+1]=sc.nextInt();
        } {
            a[i+1]=sc.nextInt();
            b[i+1]=sc.nextInt();
        } a[i+1]=sc.nextInt() a[i+1] a i+1 i 1 sc.nextInt() sc.nextInt sc b[i+1]=sc.nextInt() b[i+1] b i+1 i 1 sc.nextInt() sc.nextInt sc for(int i=0;i<N;i++){
            count[i+1]=0;
        } int i=0; int i=0; i 0 i<N i N i++ i++ i {
            count[i+1]=0;
        } {
            count[i+1]=0;
        } count[i+1]=0 count[i+1] count i+1 i 1 0 for(int i=0;i<M;i++){
            count[a[i+1]]++;
            count[b[i+1]]++;
        } int i=0; int i=0; i 0 i<M i M i++ i++ i {
            count[a[i+1]]++;
            count[b[i+1]]++;
        } {
            count[a[i+1]]++;
            count[b[i+1]]++;
        } count[a[i+1]]++ count[a[i+1]] count a[i+1] a i+1 i 1 count[b[i+1]]++ count[b[i+1]] count b[i+1] b i+1 i 1 for(int i=0;i<N;i++){
            System.out.println(count[i+1]);
        } int i=0; int i=0; i 0 i<N i N i++ i++ i {
            System.out.println(count[i+1]);
        } {
            System.out.println(count[i+1]);
        } System.out.println(count[i+1]) System.out.println System.out System System.out count[i+1] count i+1 i 1 String[] args args
import java.util.Scanner;
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+1];
        int[] b=new int[M+1];
        int[] count=new int[N+1];
        for(int i=0;i<M;i++){
            a[i+1]=sc.nextInt();
            b[i+1]=sc.nextInt();
        }
        for(int i=0;i<N;i++){
            count[i+1]=0;
        }
        for(int i=0;i<M;i++){
            count[a[i+1]]++;
            count[b[i+1]]++;
        }
        for(int i=0;i<N;i++){
            System.out.println(count[i+1]);
        }
    }
}