import java.util.*;

public class Main {
    public static void main(String[] args) throws Exception {
        
        Scanner sc = new Scanner(System.in);
        int cityNum = sc.nextInt();
        int roadNum = sc.nextInt();
        
        int[] ownNum = new int[cityNum];
        
        for(int i=0 ; i< (roadNum*2); i++){
            int cityName = sc.nextInt();
            ownNum[cityName-1]++;
        }
        
        for(int i=0; i< cityNum ; i++){
            System.out.println(ownNum[i]);
        }
    }
} import java.util.*; util.* java public class Main {
    public static void main(String[] args) throws Exception {
        
        Scanner sc = new Scanner(System.in);
        int cityNum = sc.nextInt();
        int roadNum = sc.nextInt();
        
        int[] ownNum = new int[cityNum];
        
        for(int i=0 ; i< (roadNum*2); i++){
            int cityName = sc.nextInt();
            ownNum[cityName-1]++;
        }
        
        for(int i=0; i< cityNum ; i++){
            System.out.println(ownNum[i]);
        }
    }
} Main public static void main(String[] args) throws Exception {
        
        Scanner sc = new Scanner(System.in);
        int cityNum = sc.nextInt();
        int roadNum = sc.nextInt();
        
        int[] ownNum = new int[cityNum];
        
        for(int i=0 ; i< (roadNum*2); i++){
            int cityName = sc.nextInt();
            ownNum[cityName-1]++;
        }
        
        for(int i=0; i< cityNum ; i++){
            System.out.println(ownNum[i]);
        }
    } main {
        
        Scanner sc = new Scanner(System.in);
        int cityNum = sc.nextInt();
        int roadNum = sc.nextInt();
        
        int[] ownNum = new int[cityNum];
        
        for(int i=0 ; i< (roadNum*2); i++){
            int cityName = sc.nextInt();
            ownNum[cityName-1]++;
        }
        
        for(int i=0; i< cityNum ; i++){
            System.out.println(ownNum[i]);
        }
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int cityNum = sc.nextInt(); cityNum sc.nextInt() sc.nextInt sc int roadNum = sc.nextInt(); roadNum sc.nextInt() sc.nextInt sc int[] ownNum = new int[cityNum]; ownNum new int[cityNum] cityNum for(int i=0 ; i< (roadNum*2); i++){
            int cityName = sc.nextInt();
            ownNum[cityName-1]++;
        } int i=0 ; int i=0 ; i 0 i< (roadNum*2) i (roadNum*2) roadNum 2 i++ i++ i {
            int cityName = sc.nextInt();
            ownNum[cityName-1]++;
        } {
            int cityName = sc.nextInt();
            ownNum[cityName-1]++;
        } int cityName = sc.nextInt(); cityName sc.nextInt() sc.nextInt sc ownNum[cityName-1]++ ownNum[cityName-1] ownNum cityName-1 cityName 1 for(int i=0; i< cityNum ; i++){
            System.out.println(ownNum[i]);
        } int i=0; int i=0; i 0 i< cityNum i cityNum i++ i++ i {
            System.out.println(ownNum[i]);
        } {
            System.out.println(ownNum[i]);
        } System.out.println(ownNum[i]) System.out.println System.out System System.out ownNum[i] ownNum i String[] args args public class Main {
    public static void main(String[] args) throws Exception {
        
        Scanner sc = new Scanner(System.in);
        int cityNum = sc.nextInt();
        int roadNum = sc.nextInt();
        
        int[] ownNum = new int[cityNum];
        
        for(int i=0 ; i< (roadNum*2); i++){
            int cityName = sc.nextInt();
            ownNum[cityName-1]++;
        }
        
        for(int i=0; i< cityNum ; i++){
            System.out.println(ownNum[i]);
        }
    }
} public class Main {
    public static void main(String[] args) throws Exception {
        
        Scanner sc = new Scanner(System.in);
        int cityNum = sc.nextInt();
        int roadNum = sc.nextInt();
        
        int[] ownNum = new int[cityNum];
        
        for(int i=0 ; i< (roadNum*2); i++){
            int cityName = sc.nextInt();
            ownNum[cityName-1]++;
        }
        
        for(int i=0; i< cityNum ; i++){
            System.out.println(ownNum[i]);
        }
    }
} Main
import java.util.*;

public class Main {
    public static void main(String[] args) throws Exception {
        
        Scanner sc = new Scanner(System.in);
        int cityNum = sc.nextInt();
        int roadNum = sc.nextInt();
        
        int[] ownNum = new int[cityNum];
        
        for(int i=0 ; i< (roadNum*2); i++){
            int cityName = sc.nextInt();
            ownNum[cityName-1]++;
        }
        
        for(int i=0; i< cityNum ; i++){
            System.out.println(ownNum[i]);
        }
    }
}