import java.util.*;

public class Main{
  
  public static void main(String[] args){
    
  Scanner scanner = new Scanner (System.in);
  
  	int city = scanner.nextInt();
  	int road = scanner.nextInt();
    Integer[] list = new Integer[city];
    
    for (int indexCity=0; indexCity<city; indexCity++){
       list[indexCity]=0;
    }
    
  	for (int indexRoad=0; indexRoad<road; indexRoad++){
  	
    int city1=scanner.nextInt();
  	int city2=scanner.nextInt();
      
    int temp = list[city1-1];
    list[city1-1]=temp+1;
  	
    temp = list[city2-1];
    list[city2-1]=temp+1;
  	}
    
    for(int indexCity=0; indexCity<city; indexCity++){
      System.out.println(list[indexCity]);
    }
  }
} import java.util.*; util.* java public class Main{
  
  public static void main(String[] args){
    
  Scanner scanner = new Scanner (System.in);
  
  	int city = scanner.nextInt();
  	int road = scanner.nextInt();
    Integer[] list = new Integer[city];
    
    for (int indexCity=0; indexCity<city; indexCity++){
       list[indexCity]=0;
    }
    
  	for (int indexRoad=0; indexRoad<road; indexRoad++){
  	
    int city1=scanner.nextInt();
  	int city2=scanner.nextInt();
      
    int temp = list[city1-1];
    list[city1-1]=temp+1;
  	
    temp = list[city2-1];
    list[city2-1]=temp+1;
  	}
    
    for(int indexCity=0; indexCity<city; indexCity++){
      System.out.println(list[indexCity]);
    }
  }
} Main public static void main(String[] args){
    
  Scanner scanner = new Scanner (System.in);
  
  	int city = scanner.nextInt();
  	int road = scanner.nextInt();
    Integer[] list = new Integer[city];
    
    for (int indexCity=0; indexCity<city; indexCity++){
       list[indexCity]=0;
    }
    
  	for (int indexRoad=0; indexRoad<road; indexRoad++){
  	
    int city1=scanner.nextInt();
  	int city2=scanner.nextInt();
      
    int temp = list[city1-1];
    list[city1-1]=temp+1;
  	
    temp = list[city2-1];
    list[city2-1]=temp+1;
  	}
    
    for(int indexCity=0; indexCity<city; indexCity++){
      System.out.println(list[indexCity]);
    }
  } main {
    
  Scanner scanner = new Scanner (System.in);
  
  	int city = scanner.nextInt();
  	int road = scanner.nextInt();
    Integer[] list = new Integer[city];
    
    for (int indexCity=0; indexCity<city; indexCity++){
       list[indexCity]=0;
    }
    
  	for (int indexRoad=0; indexRoad<road; indexRoad++){
  	
    int city1=scanner.nextInt();
  	int city2=scanner.nextInt();
      
    int temp = list[city1-1];
    list[city1-1]=temp+1;
  	
    temp = list[city2-1];
    list[city2-1]=temp+1;
  	}
    
    for(int indexCity=0; indexCity<city; indexCity++){
      System.out.println(list[indexCity]);
    }
  } Scanner scanner = new Scanner (System.in); scanner new Scanner (System.in) int city = scanner.nextInt(); city scanner.nextInt() scanner.nextInt scanner int road = scanner.nextInt(); road scanner.nextInt() scanner.nextInt scanner Integer[] list = new Integer[city]; list new Integer[city] city for (int indexCity=0; indexCity<city; indexCity++){
       list[indexCity]=0;
    } int indexCity=0; int indexCity=0; indexCity 0 indexCity<city indexCity city indexCity++ indexCity++ indexCity {
       list[indexCity]=0;
    } {
       list[indexCity]=0;
    } list[indexCity]=0 list[indexCity] list indexCity 0 for (int indexRoad=0; indexRoad<road; indexRoad++){
  	
    int city1=scanner.nextInt();
  	int city2=scanner.nextInt();
      
    int temp = list[city1-1];
    list[city1-1]=temp+1;
  	
    temp = list[city2-1];
    list[city2-1]=temp+1;
  	} int indexRoad=0; int indexRoad=0; indexRoad 0 indexRoad<road indexRoad road indexRoad++ indexRoad++ indexRoad {
  	
    int city1=scanner.nextInt();
  	int city2=scanner.nextInt();
      
    int temp = list[city1-1];
    list[city1-1]=temp+1;
  	
    temp = list[city2-1];
    list[city2-1]=temp+1;
  	} {
  	
    int city1=scanner.nextInt();
  	int city2=scanner.nextInt();
      
    int temp = list[city1-1];
    list[city1-1]=temp+1;
  	
    temp = list[city2-1];
    list[city2-1]=temp+1;
  	} int city1=scanner.nextInt(); city1 scanner.nextInt() scanner.nextInt scanner int city2=scanner.nextInt(); city2 scanner.nextInt() scanner.nextInt scanner int temp = list[city1-1]; temp list[city1-1] list city1-1 city1 1 list[city1-1]=temp+1 list[city1-1] list city1-1 city1 1 temp+1 temp 1 temp = list[city2-1] temp list[city2-1] list city2-1 city2 1 list[city2-1]=temp+1 list[city2-1] list city2-1 city2 1 temp+1 temp 1 for(int indexCity=0; indexCity<city; indexCity++){
      System.out.println(list[indexCity]);
    } int indexCity=0; int indexCity=0; indexCity 0 indexCity<city indexCity city indexCity++ indexCity++ indexCity {
      System.out.println(list[indexCity]);
    } {
      System.out.println(list[indexCity]);
    } System.out.println(list[indexCity]) System.out.println System.out System System.out list[indexCity] list indexCity String[] args args public class Main{
  
  public static void main(String[] args){
    
  Scanner scanner = new Scanner (System.in);
  
  	int city = scanner.nextInt();
  	int road = scanner.nextInt();
    Integer[] list = new Integer[city];
    
    for (int indexCity=0; indexCity<city; indexCity++){
       list[indexCity]=0;
    }
    
  	for (int indexRoad=0; indexRoad<road; indexRoad++){
  	
    int city1=scanner.nextInt();
  	int city2=scanner.nextInt();
      
    int temp = list[city1-1];
    list[city1-1]=temp+1;
  	
    temp = list[city2-1];
    list[city2-1]=temp+1;
  	}
    
    for(int indexCity=0; indexCity<city; indexCity++){
      System.out.println(list[indexCity]);
    }
  }
} public class Main{
  
  public static void main(String[] args){
    
  Scanner scanner = new Scanner (System.in);
  
  	int city = scanner.nextInt();
  	int road = scanner.nextInt();
    Integer[] list = new Integer[city];
    
    for (int indexCity=0; indexCity<city; indexCity++){
       list[indexCity]=0;
    }
    
  	for (int indexRoad=0; indexRoad<road; indexRoad++){
  	
    int city1=scanner.nextInt();
  	int city2=scanner.nextInt();
      
    int temp = list[city1-1];
    list[city1-1]=temp+1;
  	
    temp = list[city2-1];
    list[city2-1]=temp+1;
  	}
    
    for(int indexCity=0; indexCity<city; indexCity++){
      System.out.println(list[indexCity]);
    }
  }
} Main
import java.util.*;

public class Main{
  
  public static void main(String[] args){
    
  Scanner scanner = new Scanner (System.in);
  
  	int city = scanner.nextInt();
  	int road = scanner.nextInt();
    Integer[] list = new Integer[city];
    
    for (int indexCity=0; indexCity<city; indexCity++){
       list[indexCity]=0;
    }
    
  	for (int indexRoad=0; indexRoad<road; indexRoad++){
  	
    int city1=scanner.nextInt();
  	int city2=scanner.nextInt();
      
    int temp = list[city1-1];
    list[city1-1]=temp+1;
  	
    temp = list[city2-1];
    list[city2-1]=temp+1;
  	}
    
    for(int indexCity=0; indexCity<city; indexCity++){
      System.out.println(list[indexCity]);
    }
  }
}