import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.util.*;

public class Main {

    public static void main(String[] args) {
        Scanner in = new Scanner(new BufferedReader(new InputStreamReader(System.in)));
        int n = in.nextInt(), m = in.nextInt();
        int [] roads_for_cities = new int[n];
        Arrays.fill(roads_for_cities, 0);
        for (int i = 0; i < m; i++){
            int a = in.nextInt();
            roads_for_cities[a-1]++;
            int b = in.nextInt();
            roads_for_cities[b-1]++;
        }
        for (int i = 0; i < n; i++) System.out.println(roads_for_cities[i]);
    }
    
} import java.io.BufferedReader; BufferedReader java.io import java.io.InputStreamReader; InputStreamReader java.io import java.util.*; util.* java public class Main {

    public static void main(String[] args) {
        Scanner in = new Scanner(new BufferedReader(new InputStreamReader(System.in)));
        int n = in.nextInt(), m = in.nextInt();
        int [] roads_for_cities = new int[n];
        Arrays.fill(roads_for_cities, 0);
        for (int i = 0; i < m; i++){
            int a = in.nextInt();
            roads_for_cities[a-1]++;
            int b = in.nextInt();
            roads_for_cities[b-1]++;
        }
        for (int i = 0; i < n; i++) System.out.println(roads_for_cities[i]);
    }
    
} Main public static void main(String[] args) {
        Scanner in = new Scanner(new BufferedReader(new InputStreamReader(System.in)));
        int n = in.nextInt(), m = in.nextInt();
        int [] roads_for_cities = new int[n];
        Arrays.fill(roads_for_cities, 0);
        for (int i = 0; i < m; i++){
            int a = in.nextInt();
            roads_for_cities[a-1]++;
            int b = in.nextInt();
            roads_for_cities[b-1]++;
        }
        for (int i = 0; i < n; i++) System.out.println(roads_for_cities[i]);
    } main {
        Scanner in = new Scanner(new BufferedReader(new InputStreamReader(System.in)));
        int n = in.nextInt(), m = in.nextInt();
        int [] roads_for_cities = new int[n];
        Arrays.fill(roads_for_cities, 0);
        for (int i = 0; i < m; i++){
            int a = in.nextInt();
            roads_for_cities[a-1]++;
            int b = in.nextInt();
            roads_for_cities[b-1]++;
        }
        for (int i = 0; i < n; i++) System.out.println(roads_for_cities[i]);
    } Scanner in = new Scanner(new BufferedReader(new InputStreamReader(System.in))); in new Scanner(new BufferedReader(new InputStreamReader(System.in))) int n = in.nextInt() n in.nextInt() in.nextInt in m = in.nextInt(); m in.nextInt() in.nextInt in int [] roads_for_cities = new int[n]; roads_for_cities new int[n] n Arrays.fill(roads_for_cities, 0) Arrays.fill Arrays roads_for_cities 0 for (int i = 0; i < m; i++){
            int a = in.nextInt();
            roads_for_cities[a-1]++;
            int b = in.nextInt();
            roads_for_cities[b-1]++;
        } int i = 0; int i = 0; i 0 i < m i m i++ i++ i {
            int a = in.nextInt();
            roads_for_cities[a-1]++;
            int b = in.nextInt();
            roads_for_cities[b-1]++;
        } {
            int a = in.nextInt();
            roads_for_cities[a-1]++;
            int b = in.nextInt();
            roads_for_cities[b-1]++;
        } int a = in.nextInt(); a in.nextInt() in.nextInt in roads_for_cities[a-1]++ roads_for_cities[a-1] roads_for_cities a-1 a 1 int b = in.nextInt(); b in.nextInt() in.nextInt in roads_for_cities[b-1]++ roads_for_cities[b-1] roads_for_cities b-1 b 1 for (int i = 0; i < n; i++) System.out.println(roads_for_cities[i]); int i = 0; int i = 0; i 0 i < n i n i++ i++ i System.out.println(roads_for_cities[i]); System.out.println(roads_for_cities[i]) System.out.println System.out System System.out roads_for_cities[i] roads_for_cities i String[] args args public class Main {

    public static void main(String[] args) {
        Scanner in = new Scanner(new BufferedReader(new InputStreamReader(System.in)));
        int n = in.nextInt(), m = in.nextInt();
        int [] roads_for_cities = new int[n];
        Arrays.fill(roads_for_cities, 0);
        for (int i = 0; i < m; i++){
            int a = in.nextInt();
            roads_for_cities[a-1]++;
            int b = in.nextInt();
            roads_for_cities[b-1]++;
        }
        for (int i = 0; i < n; i++) System.out.println(roads_for_cities[i]);
    }
    
} public class Main {

    public static void main(String[] args) {
        Scanner in = new Scanner(new BufferedReader(new InputStreamReader(System.in)));
        int n = in.nextInt(), m = in.nextInt();
        int [] roads_for_cities = new int[n];
        Arrays.fill(roads_for_cities, 0);
        for (int i = 0; i < m; i++){
            int a = in.nextInt();
            roads_for_cities[a-1]++;
            int b = in.nextInt();
            roads_for_cities[b-1]++;
        }
        for (int i = 0; i < n; i++) System.out.println(roads_for_cities[i]);
    }
    
} Main
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.util.*;

public class Main {

    public static void main(String[] args) {
        Scanner in = new Scanner(new BufferedReader(new InputStreamReader(System.in)));
        int n = in.nextInt(), m = in.nextInt();
        int [] roads_for_cities = new int[n];
        Arrays.fill(roads_for_cities, 0);
        for (int i = 0; i < m; i++){
            int a = in.nextInt();
            roads_for_cities[a-1]++;
            int b = in.nextInt();
            roads_for_cities[b-1]++;
        }
        for (int i = 0; i < n; i++) System.out.println(roads_for_cities[i]);
    }
    
}