
import java.util.HashMap;
import java.util.Map;
import java.util.Scanner;

public class Main{

	public static void main(String[] args) {

		// map
		Map<Integer, Integer> mapCityAndRoad = new HashMap<Integer,Integer>();
		
		Scanner sc = new Scanner(System.in);
		int numCity = sc.nextInt();
		int numRoad = sc.nextInt();
		
		for(int i=1;i<=numCity;i++){
			
			mapCityAndRoad.put(i, 0);
		}
		
		for(int i=0;i<numRoad*2;i++){
			
			int tmpCity = sc.nextInt();
			int tmpNumRoad = (int)mapCityAndRoad.get(tmpCity);
			mapCityAndRoad.put(tmpCity, tmpNumRoad+1);
		}

		for(int i=1;i<=numCity;i++){
			
			System.out.println(mapCityAndRoad.get(i));
		}
		return;
	}
} 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) {

		// map
		Map<Integer, Integer> mapCityAndRoad = new HashMap<Integer,Integer>();
		
		Scanner sc = new Scanner(System.in);
		int numCity = sc.nextInt();
		int numRoad = sc.nextInt();
		
		for(int i=1;i<=numCity;i++){
			
			mapCityAndRoad.put(i, 0);
		}
		
		for(int i=0;i<numRoad*2;i++){
			
			int tmpCity = sc.nextInt();
			int tmpNumRoad = (int)mapCityAndRoad.get(tmpCity);
			mapCityAndRoad.put(tmpCity, tmpNumRoad+1);
		}

		for(int i=1;i<=numCity;i++){
			
			System.out.println(mapCityAndRoad.get(i));
		}
		return;
	}
} Main public static void main(String[] args) {

		// map
		Map<Integer, Integer> mapCityAndRoad = new HashMap<Integer,Integer>();
		
		Scanner sc = new Scanner(System.in);
		int numCity = sc.nextInt();
		int numRoad = sc.nextInt();
		
		for(int i=1;i<=numCity;i++){
			
			mapCityAndRoad.put(i, 0);
		}
		
		for(int i=0;i<numRoad*2;i++){
			
			int tmpCity = sc.nextInt();
			int tmpNumRoad = (int)mapCityAndRoad.get(tmpCity);
			mapCityAndRoad.put(tmpCity, tmpNumRoad+1);
		}

		for(int i=1;i<=numCity;i++){
			
			System.out.println(mapCityAndRoad.get(i));
		}
		return;
	} main {

		// map
		Map<Integer, Integer> mapCityAndRoad = new HashMap<Integer,Integer>();
		
		Scanner sc = new Scanner(System.in);
		int numCity = sc.nextInt();
		int numRoad = sc.nextInt();
		
		for(int i=1;i<=numCity;i++){
			
			mapCityAndRoad.put(i, 0);
		}
		
		for(int i=0;i<numRoad*2;i++){
			
			int tmpCity = sc.nextInt();
			int tmpNumRoad = (int)mapCityAndRoad.get(tmpCity);
			mapCityAndRoad.put(tmpCity, tmpNumRoad+1);
		}

		for(int i=1;i<=numCity;i++){
			
			System.out.println(mapCityAndRoad.get(i));
		}
		return;
	} Map<Integer, Integer> mapCityAndRoad = new HashMap<Integer,Integer>(); mapCityAndRoad new HashMap<Integer,Integer>() Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int numCity = sc.nextInt(); numCity sc.nextInt() sc.nextInt sc int numRoad = sc.nextInt(); numRoad sc.nextInt() sc.nextInt sc for(int i=1;i<=numCity;i++){
			
			mapCityAndRoad.put(i, 0);
		} int i=1; int i=1; i 1 i<=numCity i numCity i++ i++ i {
			
			mapCityAndRoad.put(i, 0);
		} {
			
			mapCityAndRoad.put(i, 0);
		} mapCityAndRoad.put(i, 0) mapCityAndRoad.put mapCityAndRoad i 0 for(int i=0;i<numRoad*2;i++){
			
			int tmpCity = sc.nextInt();
			int tmpNumRoad = (int)mapCityAndRoad.get(tmpCity);
			mapCityAndRoad.put(tmpCity, tmpNumRoad+1);
		} int i=0; int i=0; i 0 i<numRoad*2 i numRoad*2 numRoad 2 i++ i++ i {
			
			int tmpCity = sc.nextInt();
			int tmpNumRoad = (int)mapCityAndRoad.get(tmpCity);
			mapCityAndRoad.put(tmpCity, tmpNumRoad+1);
		} {
			
			int tmpCity = sc.nextInt();
			int tmpNumRoad = (int)mapCityAndRoad.get(tmpCity);
			mapCityAndRoad.put(tmpCity, tmpNumRoad+1);
		} int tmpCity = sc.nextInt(); tmpCity sc.nextInt() sc.nextInt sc int tmpNumRoad = (int)mapCityAndRoad.get(tmpCity); tmpNumRoad (int)mapCityAndRoad.get(tmpCity) mapCityAndRoad.get mapCityAndRoad tmpCity mapCityAndRoad.put(tmpCity, tmpNumRoad+1) mapCityAndRoad.put mapCityAndRoad tmpCity tmpNumRoad+1 tmpNumRoad 1 for(int i=1;i<=numCity;i++){
			
			System.out.println(mapCityAndRoad.get(i));
		} int i=1; int i=1; i 1 i<=numCity i numCity i++ i++ i {
			
			System.out.println(mapCityAndRoad.get(i));
		} {
			
			System.out.println(mapCityAndRoad.get(i));
		} System.out.println(mapCityAndRoad.get(i)) System.out.println System.out System System.out mapCityAndRoad.get(i) mapCityAndRoad.get mapCityAndRoad i return; String[] args args public class Main{

	public static void main(String[] args) {

		// map
		Map<Integer, Integer> mapCityAndRoad = new HashMap<Integer,Integer>();
		
		Scanner sc = new Scanner(System.in);
		int numCity = sc.nextInt();
		int numRoad = sc.nextInt();
		
		for(int i=1;i<=numCity;i++){
			
			mapCityAndRoad.put(i, 0);
		}
		
		for(int i=0;i<numRoad*2;i++){
			
			int tmpCity = sc.nextInt();
			int tmpNumRoad = (int)mapCityAndRoad.get(tmpCity);
			mapCityAndRoad.put(tmpCity, tmpNumRoad+1);
		}

		for(int i=1;i<=numCity;i++){
			
			System.out.println(mapCityAndRoad.get(i));
		}
		return;
	}
} public class Main{

	public static void main(String[] args) {

		// map
		Map<Integer, Integer> mapCityAndRoad = new HashMap<Integer,Integer>();
		
		Scanner sc = new Scanner(System.in);
		int numCity = sc.nextInt();
		int numRoad = sc.nextInt();
		
		for(int i=1;i<=numCity;i++){
			
			mapCityAndRoad.put(i, 0);
		}
		
		for(int i=0;i<numRoad*2;i++){
			
			int tmpCity = sc.nextInt();
			int tmpNumRoad = (int)mapCityAndRoad.get(tmpCity);
			mapCityAndRoad.put(tmpCity, tmpNumRoad+1);
		}

		for(int i=1;i<=numCity;i++){
			
			System.out.println(mapCityAndRoad.get(i));
		}
		return;
	}
} Main

import java.util.HashMap;
import java.util.Map;
import java.util.Scanner;

public class Main{

	public static void main(String[] args) {

		// map
		Map<Integer, Integer> mapCityAndRoad = new HashMap<Integer,Integer>();
		
		Scanner sc = new Scanner(System.in);
		int numCity = sc.nextInt();
		int numRoad = sc.nextInt();
		
		for(int i=1;i<=numCity;i++){
			
			mapCityAndRoad.put(i, 0);
		}
		
		for(int i=0;i<numRoad*2;i++){
			
			int tmpCity = sc.nextInt();
			int tmpNumRoad = (int)mapCityAndRoad.get(tmpCity);
			mapCityAndRoad.put(tmpCity, tmpNumRoad+1);
		}

		for(int i=1;i<=numCity;i++){
			
			System.out.println(mapCityAndRoad.get(i));
		}
		return;
	}
}