import java.util.*;

public class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    int city = sc.nextInt();
    int way = sc.nextInt();
    
    int[] cityWay = new int[city];
 
    while(sc.hasNext()){
      int wayi = sc.nextInt();
      cityWay[wayi-1] += 1;
      }
  
  for(int i = 0; i < cityWay.length; i++){
    System.out.println(cityWay[i]);
  }
  
  }  
} import java.util.*; util.* java public class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    int city = sc.nextInt();
    int way = sc.nextInt();
    
    int[] cityWay = new int[city];
 
    while(sc.hasNext()){
      int wayi = sc.nextInt();
      cityWay[wayi-1] += 1;
      }
  
  for(int i = 0; i < cityWay.length; i++){
    System.out.println(cityWay[i]);
  }
  
  }  
} Main public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    int city = sc.nextInt();
    int way = sc.nextInt();
    
    int[] cityWay = new int[city];
 
    while(sc.hasNext()){
      int wayi = sc.nextInt();
      cityWay[wayi-1] += 1;
      }
  
  for(int i = 0; i < cityWay.length; i++){
    System.out.println(cityWay[i]);
  }
  
  } main {
    Scanner sc = new Scanner(System.in);
    int city = sc.nextInt();
    int way = sc.nextInt();
    
    int[] cityWay = new int[city];
 
    while(sc.hasNext()){
      int wayi = sc.nextInt();
      cityWay[wayi-1] += 1;
      }
  
  for(int i = 0; i < cityWay.length; i++){
    System.out.println(cityWay[i]);
  }
  
  } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int city = sc.nextInt(); city sc.nextInt() sc.nextInt sc int way = sc.nextInt(); way sc.nextInt() sc.nextInt sc int[] cityWay = new int[city]; cityWay new int[city] city while(sc.hasNext()){
      int wayi = sc.nextInt();
      cityWay[wayi-1] += 1;
      } sc.hasNext() sc.hasNext sc {
      int wayi = sc.nextInt();
      cityWay[wayi-1] += 1;
      } int wayi = sc.nextInt(); wayi sc.nextInt() sc.nextInt sc cityWay[wayi-1] += 1 cityWay[wayi-1] cityWay wayi-1 wayi 1 1 for(int i = 0; i < cityWay.length; i++){
    System.out.println(cityWay[i]);
  } int i = 0; int i = 0; i 0 i < cityWay.length i cityWay.length cityWay cityWay.length i++ i++ i {
    System.out.println(cityWay[i]);
  } {
    System.out.println(cityWay[i]);
  } System.out.println(cityWay[i]) System.out.println System.out System System.out cityWay[i] cityWay i String[] args args public class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    int city = sc.nextInt();
    int way = sc.nextInt();
    
    int[] cityWay = new int[city];
 
    while(sc.hasNext()){
      int wayi = sc.nextInt();
      cityWay[wayi-1] += 1;
      }
  
  for(int i = 0; i < cityWay.length; i++){
    System.out.println(cityWay[i]);
  }
  
  }  
} public class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    int city = sc.nextInt();
    int way = sc.nextInt();
    
    int[] cityWay = new int[city];
 
    while(sc.hasNext()){
      int wayi = sc.nextInt();
      cityWay[wayi-1] += 1;
      }
  
  for(int i = 0; i < cityWay.length; i++){
    System.out.println(cityWay[i]);
  }
  
  }  
} Main
import java.util.*;

public class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    int city = sc.nextInt();
    int way = sc.nextInt();
    
    int[] cityWay = new int[city];
 
    while(sc.hasNext()){
      int wayi = sc.nextInt();
      cityWay[wayi-1] += 1;
      }
  
  for(int i = 0; i < cityWay.length; i++){
    System.out.println(cityWay[i]);
  }
  
  }  
}