import java.util.*;

public class Main {
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    try {
      int n = sc.nextInt();
      int m = sc.nextInt();
      int[] cnt = new int[n];
      for (int i = 0; i < m; i++) {
        int a = sc.nextInt() - 1;
        int b = sc.nextInt() - 1;
        cnt[a]++;
        cnt[b]++;
      }
      for (int i = 0; i < n; i++) System.out.println(cnt[i]);
    } finally {
      sc.close();
    }
  }
} import java.util.*; util.* java public class Main {
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    try {
      int n = sc.nextInt();
      int m = sc.nextInt();
      int[] cnt = new int[n];
      for (int i = 0; i < m; i++) {
        int a = sc.nextInt() - 1;
        int b = sc.nextInt() - 1;
        cnt[a]++;
        cnt[b]++;
      }
      for (int i = 0; i < n; i++) System.out.println(cnt[i]);
    } finally {
      sc.close();
    }
  }
} Main public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    try {
      int n = sc.nextInt();
      int m = sc.nextInt();
      int[] cnt = new int[n];
      for (int i = 0; i < m; i++) {
        int a = sc.nextInt() - 1;
        int b = sc.nextInt() - 1;
        cnt[a]++;
        cnt[b]++;
      }
      for (int i = 0; i < n; i++) System.out.println(cnt[i]);
    } finally {
      sc.close();
    }
  } main {
    Scanner sc = new Scanner(System.in);
    try {
      int n = sc.nextInt();
      int m = sc.nextInt();
      int[] cnt = new int[n];
      for (int i = 0; i < m; i++) {
        int a = sc.nextInt() - 1;
        int b = sc.nextInt() - 1;
        cnt[a]++;
        cnt[b]++;
      }
      for (int i = 0; i < n; i++) System.out.println(cnt[i]);
    } finally {
      sc.close();
    }
  } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) try {
      int n = sc.nextInt();
      int m = sc.nextInt();
      int[] cnt = new int[n];
      for (int i = 0; i < m; i++) {
        int a = sc.nextInt() - 1;
        int b = sc.nextInt() - 1;
        cnt[a]++;
        cnt[b]++;
      }
      for (int i = 0; i < n; i++) System.out.println(cnt[i]);
    } finally {
      sc.close();
    } {
      sc.close();
    } sc.close() sc.close sc {
      int n = sc.nextInt();
      int m = sc.nextInt();
      int[] cnt = new int[n];
      for (int i = 0; i < m; i++) {
        int a = sc.nextInt() - 1;
        int b = sc.nextInt() - 1;
        cnt[a]++;
        cnt[b]++;
      }
      for (int i = 0; i < n; i++) System.out.println(cnt[i]);
    } int n = sc.nextInt(); n sc.nextInt() sc.nextInt sc int m = sc.nextInt(); m sc.nextInt() sc.nextInt sc int[] cnt = new int[n]; cnt new int[n] n for (int i = 0; i < m; i++) {
        int a = sc.nextInt() - 1;
        int b = sc.nextInt() - 1;
        cnt[a]++;
        cnt[b]++;
      } int i = 0; int i = 0; i 0 i < m i m i++ i++ i {
        int a = sc.nextInt() - 1;
        int b = sc.nextInt() - 1;
        cnt[a]++;
        cnt[b]++;
      } {
        int a = sc.nextInt() - 1;
        int b = sc.nextInt() - 1;
        cnt[a]++;
        cnt[b]++;
      } int a = sc.nextInt() - 1; a sc.nextInt() - 1 sc.nextInt() sc.nextInt sc 1 int b = sc.nextInt() - 1; b sc.nextInt() - 1 sc.nextInt() sc.nextInt sc 1 cnt[a]++ cnt[a] cnt a cnt[b]++ cnt[b] cnt b 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 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);
    try {
      int n = sc.nextInt();
      int m = sc.nextInt();
      int[] cnt = new int[n];
      for (int i = 0; i < m; i++) {
        int a = sc.nextInt() - 1;
        int b = sc.nextInt() - 1;
        cnt[a]++;
        cnt[b]++;
      }
      for (int i = 0; i < n; i++) System.out.println(cnt[i]);
    } finally {
      sc.close();
    }
  }
} public class Main {
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    try {
      int n = sc.nextInt();
      int m = sc.nextInt();
      int[] cnt = new int[n];
      for (int i = 0; i < m; i++) {
        int a = sc.nextInt() - 1;
        int b = sc.nextInt() - 1;
        cnt[a]++;
        cnt[b]++;
      }
      for (int i = 0; i < n; i++) System.out.println(cnt[i]);
    } finally {
      sc.close();
    }
  }
} Main
import java.util.*;

public class Main {
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    try {
      int n = sc.nextInt();
      int m = sc.nextInt();
      int[] cnt = new int[n];
      for (int i = 0; i < m; i++) {
        int a = sc.nextInt() - 1;
        int b = sc.nextInt() - 1;
        cnt[a]++;
        cnt[b]++;
      }
      for (int i = 0; i < n; i++) System.out.println(cnt[i]);
    } finally {
      sc.close();
    }
  }
}