import java.util.Scanner;
import java.util.ArrayList;

public class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    int N = sc.nextInt();
    int M = sc.nextInt();
    int count = 0;
    ArrayList<Integer> array = new ArrayList<Integer>();
    for(int a=0;a<M*2;a++){
      array.add(sc.nextInt());
    }
    for(int b=1;b<=N;b++){
      count = 0;
      for(int c=0;c<M*2;c++){
        if(array.get(c)==b){
          count += 1;
        }
      }
      System.out.println(count);
    }
  }
} import java.util.Scanner; Scanner java.util import java.util.ArrayList; ArrayList 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();
    int count = 0;
    ArrayList<Integer> array = new ArrayList<Integer>();
    for(int a=0;a<M*2;a++){
      array.add(sc.nextInt());
    }
    for(int b=1;b<=N;b++){
      count = 0;
      for(int c=0;c<M*2;c++){
        if(array.get(c)==b){
          count += 1;
        }
      }
      System.out.println(count);
    }
  }
} Main public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    int N = sc.nextInt();
    int M = sc.nextInt();
    int count = 0;
    ArrayList<Integer> array = new ArrayList<Integer>();
    for(int a=0;a<M*2;a++){
      array.add(sc.nextInt());
    }
    for(int b=1;b<=N;b++){
      count = 0;
      for(int c=0;c<M*2;c++){
        if(array.get(c)==b){
          count += 1;
        }
      }
      System.out.println(count);
    }
  } main {
    Scanner sc = new Scanner(System.in);
    int N = sc.nextInt();
    int M = sc.nextInt();
    int count = 0;
    ArrayList<Integer> array = new ArrayList<Integer>();
    for(int a=0;a<M*2;a++){
      array.add(sc.nextInt());
    }
    for(int b=1;b<=N;b++){
      count = 0;
      for(int c=0;c<M*2;c++){
        if(array.get(c)==b){
          count += 1;
        }
      }
      System.out.println(count);
    }
  } 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 count = 0; count 0 ArrayList<Integer> array = new ArrayList<Integer>(); array new ArrayList<Integer>() for(int a=0;a<M*2;a++){
      array.add(sc.nextInt());
    } int a=0; int a=0; a 0 a<M*2 a M*2 M 2 a++ a++ a {
      array.add(sc.nextInt());
    } {
      array.add(sc.nextInt());
    } array.add(sc.nextInt()) array.add array sc.nextInt() sc.nextInt sc for(int b=1;b<=N;b++){
      count = 0;
      for(int c=0;c<M*2;c++){
        if(array.get(c)==b){
          count += 1;
        }
      }
      System.out.println(count);
    } int b=1; int b=1; b 1 b<=N b N b++ b++ b {
      count = 0;
      for(int c=0;c<M*2;c++){
        if(array.get(c)==b){
          count += 1;
        }
      }
      System.out.println(count);
    } {
      count = 0;
      for(int c=0;c<M*2;c++){
        if(array.get(c)==b){
          count += 1;
        }
      }
      System.out.println(count);
    } count = 0 count 0 for(int c=0;c<M*2;c++){
        if(array.get(c)==b){
          count += 1;
        }
      } int c=0; int c=0; c 0 c<M*2 c M*2 M 2 c++ c++ c {
        if(array.get(c)==b){
          count += 1;
        }
      } {
        if(array.get(c)==b){
          count += 1;
        }
      } if(array.get(c)==b){
          count += 1;
        } array.get(c)==b array.get(c) array.get array c b {
          count += 1;
        } count += 1 count 1 System.out.println(count) System.out.println System.out System System.out count 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();
    int count = 0;
    ArrayList<Integer> array = new ArrayList<Integer>();
    for(int a=0;a<M*2;a++){
      array.add(sc.nextInt());
    }
    for(int b=1;b<=N;b++){
      count = 0;
      for(int c=0;c<M*2;c++){
        if(array.get(c)==b){
          count += 1;
        }
      }
      System.out.println(count);
    }
  }
} public class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    int N = sc.nextInt();
    int M = sc.nextInt();
    int count = 0;
    ArrayList<Integer> array = new ArrayList<Integer>();
    for(int a=0;a<M*2;a++){
      array.add(sc.nextInt());
    }
    for(int b=1;b<=N;b++){
      count = 0;
      for(int c=0;c<M*2;c++){
        if(array.get(c)==b){
          count += 1;
        }
      }
      System.out.println(count);
    }
  }
} Main
import java.util.Scanner;
import java.util.ArrayList;

public class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    int N = sc.nextInt();
    int M = sc.nextInt();
    int count = 0;
    ArrayList<Integer> array = new ArrayList<Integer>();
    for(int a=0;a<M*2;a++){
      array.add(sc.nextInt());
    }
    for(int b=1;b<=N;b++){
      count = 0;
      for(int c=0;c<M*2;c++){
        if(array.get(c)==b){
          count += 1;
        }
      }
      System.out.println(count);
    }
  }
}