import java.util.*;

public class Main {
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    int N = sc.nextInt(), M = sc.nextInt(),a,b;
    int A[] = new int[N];
    for(int i=0; i<M; i++) {
      a=sc.nextInt()-1;
      b=sc.nextInt()-1;
      A[a]++;
      A[b]++;
    }
    for(int j=0; j<N; j++) {
      System.out.println(A[j]);
    }
  }
} import java.util.*; util.* java public class Main {
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    int N = sc.nextInt(), M = sc.nextInt(),a,b;
    int A[] = new int[N];
    for(int i=0; i<M; i++) {
      a=sc.nextInt()-1;
      b=sc.nextInt()-1;
      A[a]++;
      A[b]++;
    }
    for(int j=0; j<N; j++) {
      System.out.println(A[j]);
    }
  }
} Main public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    int N = sc.nextInt(), M = sc.nextInt(),a,b;
    int A[] = new int[N];
    for(int i=0; i<M; i++) {
      a=sc.nextInt()-1;
      b=sc.nextInt()-1;
      A[a]++;
      A[b]++;
    }
    for(int j=0; j<N; j++) {
      System.out.println(A[j]);
    }
  } main {
    Scanner sc = new Scanner(System.in);
    int N = sc.nextInt(), M = sc.nextInt(),a,b;
    int A[] = new int[N];
    for(int i=0; i<M; i++) {
      a=sc.nextInt()-1;
      b=sc.nextInt()-1;
      A[a]++;
      A[b]++;
    }
    for(int j=0; j<N; j++) {
      System.out.println(A[j]);
    }
  } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int N = sc.nextInt() N sc.nextInt() sc.nextInt sc M = sc.nextInt() M sc.nextInt() sc.nextInt sc a a b; b int A[] = new int[N]; A new int[N] N for(int i=0; i<M; i++) {
      a=sc.nextInt()-1;
      b=sc.nextInt()-1;
      A[a]++;
      A[b]++;
    } int i=0; int i=0; i 0 i<M i M i++ i++ i {
      a=sc.nextInt()-1;
      b=sc.nextInt()-1;
      A[a]++;
      A[b]++;
    } {
      a=sc.nextInt()-1;
      b=sc.nextInt()-1;
      A[a]++;
      A[b]++;
    } a=sc.nextInt()-1 a sc.nextInt()-1 sc.nextInt() sc.nextInt sc 1 b=sc.nextInt()-1 b sc.nextInt()-1 sc.nextInt() sc.nextInt sc 1 A[a]++ A[a] A a A[b]++ A[b] A b for(int j=0; j<N; j++) {
      System.out.println(A[j]);
    } int j=0; int j=0; j 0 j<N j N j++ j++ j {
      System.out.println(A[j]);
    } {
      System.out.println(A[j]);
    } System.out.println(A[j]) System.out.println System.out System System.out A[j] A j String[] args args public class Main {
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    int N = sc.nextInt(), M = sc.nextInt(),a,b;
    int A[] = new int[N];
    for(int i=0; i<M; i++) {
      a=sc.nextInt()-1;
      b=sc.nextInt()-1;
      A[a]++;
      A[b]++;
    }
    for(int j=0; j<N; j++) {
      System.out.println(A[j]);
    }
  }
} public class Main {
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    int N = sc.nextInt(), M = sc.nextInt(),a,b;
    int A[] = new int[N];
    for(int i=0; i<M; i++) {
      a=sc.nextInt()-1;
      b=sc.nextInt()-1;
      A[a]++;
      A[b]++;
    }
    for(int j=0; j<N; j++) {
      System.out.println(A[j]);
    }
  }
} Main
import java.util.*;

public class Main {
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    int N = sc.nextInt(), M = sc.nextInt(),a,b;
    int A[] = new int[N];
    for(int i=0; i<M; i++) {
      a=sc.nextInt()-1;
      b=sc.nextInt()-1;
      A[a]++;
      A[b]++;
    }
    for(int j=0; j<N; j++) {
      System.out.println(A[j]);
    }
  }
}