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