import java.util.HashMap;
import java.util.Map;
import java.util.Scanner;
public class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    int n = sc.nextInt();
    int m = sc.nextInt();
    Map<Integer,Integer> count = new HashMap<Integer,Integer>();
    for(int i = 1; i <= n; i++){
      count.put(i,0);
    }
    for(int i = 0; i < m; i++){
      int a = sc.nextInt();
      int b = sc.nextInt();
      int temp = count.get(a) + 1;
      count.put(a,temp);
      temp = count.get(b) + 1;
      count.put(b,temp);
    }
    for(int i = 1; i <= n; i++){
      System.out.println(count.get(i));
    }
  }
} import java.util.HashMap; HashMap java.util import java.util.Map; Map java.util import java.util.Scanner; Scanner java.util public class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    int n = sc.nextInt();
    int m = sc.nextInt();
    Map<Integer,Integer> count = new HashMap<Integer,Integer>();
    for(int i = 1; i <= n; i++){
      count.put(i,0);
    }
    for(int i = 0; i < m; i++){
      int a = sc.nextInt();
      int b = sc.nextInt();
      int temp = count.get(a) + 1;
      count.put(a,temp);
      temp = count.get(b) + 1;
      count.put(b,temp);
    }
    for(int i = 1; i <= n; i++){
      System.out.println(count.get(i));
    }
  }
} Main public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    int n = sc.nextInt();
    int m = sc.nextInt();
    Map<Integer,Integer> count = new HashMap<Integer,Integer>();
    for(int i = 1; i <= n; i++){
      count.put(i,0);
    }
    for(int i = 0; i < m; i++){
      int a = sc.nextInt();
      int b = sc.nextInt();
      int temp = count.get(a) + 1;
      count.put(a,temp);
      temp = count.get(b) + 1;
      count.put(b,temp);
    }
    for(int i = 1; i <= n; i++){
      System.out.println(count.get(i));
    }
  } main {
    Scanner sc = new Scanner(System.in);
    int n = sc.nextInt();
    int m = sc.nextInt();
    Map<Integer,Integer> count = new HashMap<Integer,Integer>();
    for(int i = 1; i <= n; i++){
      count.put(i,0);
    }
    for(int i = 0; i < m; i++){
      int a = sc.nextInt();
      int b = sc.nextInt();
      int temp = count.get(a) + 1;
      count.put(a,temp);
      temp = count.get(b) + 1;
      count.put(b,temp);
    }
    for(int i = 1; i <= n; i++){
      System.out.println(count.get(i));
    }
  } 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 Map<Integer,Integer> count = new HashMap<Integer,Integer>(); count new HashMap<Integer,Integer>() for(int i = 1; i <= n; i++){
      count.put(i,0);
    } int i = 1; int i = 1; i 1 i <= n i n i++ i++ i {
      count.put(i,0);
    } {
      count.put(i,0);
    } count.put(i,0) count.put count i 0 for(int i = 0; i < m; i++){
      int a = sc.nextInt();
      int b = sc.nextInt();
      int temp = count.get(a) + 1;
      count.put(a,temp);
      temp = count.get(b) + 1;
      count.put(b,temp);
    } int i = 0; int i = 0; i 0 i < m i m i++ i++ i {
      int a = sc.nextInt();
      int b = sc.nextInt();
      int temp = count.get(a) + 1;
      count.put(a,temp);
      temp = count.get(b) + 1;
      count.put(b,temp);
    } {
      int a = sc.nextInt();
      int b = sc.nextInt();
      int temp = count.get(a) + 1;
      count.put(a,temp);
      temp = count.get(b) + 1;
      count.put(b,temp);
    } int a = sc.nextInt(); a sc.nextInt() sc.nextInt sc int b = sc.nextInt(); b sc.nextInt() sc.nextInt sc int temp = count.get(a) + 1; temp count.get(a) + 1 count.get(a) count.get count a 1 count.put(a,temp) count.put count a temp temp = count.get(b) + 1 temp count.get(b) + 1 count.get(b) count.get count b 1 count.put(b,temp) count.put count b temp for(int i = 1; i <= n; i++){
      System.out.println(count.get(i));
    } int i = 1; int i = 1; i 1 i <= n i n i++ i++ i {
      System.out.println(count.get(i));
    } {
      System.out.println(count.get(i));
    } System.out.println(count.get(i)) System.out.println System.out System System.out count.get(i) count.get count i String[] args args public class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    int n = sc.nextInt();
    int m = sc.nextInt();
    Map<Integer,Integer> count = new HashMap<Integer,Integer>();
    for(int i = 1; i <= n; i++){
      count.put(i,0);
    }
    for(int i = 0; i < m; i++){
      int a = sc.nextInt();
      int b = sc.nextInt();
      int temp = count.get(a) + 1;
      count.put(a,temp);
      temp = count.get(b) + 1;
      count.put(b,temp);
    }
    for(int i = 1; i <= n; i++){
      System.out.println(count.get(i));
    }
  }
} public class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    int n = sc.nextInt();
    int m = sc.nextInt();
    Map<Integer,Integer> count = new HashMap<Integer,Integer>();
    for(int i = 1; i <= n; i++){
      count.put(i,0);
    }
    for(int i = 0; i < m; i++){
      int a = sc.nextInt();
      int b = sc.nextInt();
      int temp = count.get(a) + 1;
      count.put(a,temp);
      temp = count.get(b) + 1;
      count.put(b,temp);
    }
    for(int i = 1; i <= n; i++){
      System.out.println(count.get(i));
    }
  }
} Main
import java.util.HashMap;
import java.util.Map;
import java.util.Scanner;
public class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    int n = sc.nextInt();
    int m = sc.nextInt();
    Map<Integer,Integer> count = new HashMap<Integer,Integer>();
    for(int i = 1; i <= n; i++){
      count.put(i,0);
    }
    for(int i = 0; i < m; i++){
      int a = sc.nextInt();
      int b = sc.nextInt();
      int temp = count.get(a) + 1;
      count.put(a,temp);
      temp = count.get(b) + 1;
      count.put(b,temp);
    }
    for(int i = 1; i <= n; i++){
      System.out.println(count.get(i));
    }
  }
}