import java.util.*;
import static java.lang.System.*;
import static java.lang.Math.*;
public class Main {
public static void main(String[] args){
Scanner sc = new Scanner(in);
    int n = Integer.parseInt(sc.next());
    int m = Integer.parseInt(sc.next());
int[] a=new int[m];
int[] b=new int[m];
int[] road=new int[n+1];
    for (int i = 0; i < m; i++) {
        a[i]=Integer.parseInt(sc.next());
        b[i]=Integer.parseInt(sc.next());
        road[a[i]]++;
        road[b[i]]++;
    }
    for (int i =1; i <= n; i++) {
        out.println(road[i]);
    }
}
} import java.util.*; util.* java import static java.lang.System.*; import static java.lang.System.*; import static java.lang.System.*; import static java.lang.Math.*; import static java.lang.Math.*; import static java.lang.Math.*; public class Main {
public static void main(String[] args){
Scanner sc = new Scanner(in);
    int n = Integer.parseInt(sc.next());
    int m = Integer.parseInt(sc.next());
int[] a=new int[m];
int[] b=new int[m];
int[] road=new int[n+1];
    for (int i = 0; i < m; i++) {
        a[i]=Integer.parseInt(sc.next());
        b[i]=Integer.parseInt(sc.next());
        road[a[i]]++;
        road[b[i]]++;
    }
    for (int i =1; i <= n; i++) {
        out.println(road[i]);
    }
}
} Main public static void main(String[] args){
Scanner sc = new Scanner(in);
    int n = Integer.parseInt(sc.next());
    int m = Integer.parseInt(sc.next());
int[] a=new int[m];
int[] b=new int[m];
int[] road=new int[n+1];
    for (int i = 0; i < m; i++) {
        a[i]=Integer.parseInt(sc.next());
        b[i]=Integer.parseInt(sc.next());
        road[a[i]]++;
        road[b[i]]++;
    }
    for (int i =1; i <= n; i++) {
        out.println(road[i]);
    }
} main {
Scanner sc = new Scanner(in);
    int n = Integer.parseInt(sc.next());
    int m = Integer.parseInt(sc.next());
int[] a=new int[m];
int[] b=new int[m];
int[] road=new int[n+1];
    for (int i = 0; i < m; i++) {
        a[i]=Integer.parseInt(sc.next());
        b[i]=Integer.parseInt(sc.next());
        road[a[i]]++;
        road[b[i]]++;
    }
    for (int i =1; i <= n; i++) {
        out.println(road[i]);
    }
} Scanner sc = new Scanner(in); sc new Scanner(in) int n = Integer.parseInt(sc.next()); n Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc int m = Integer.parseInt(sc.next()); m Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc int[] a=new int[m]; a new int[m] m int[] b=new int[m]; b new int[m] m int[] road=new int[n+1]; road new int[n+1] n+1 n 1 for (int i = 0; i < m; i++) {
        a[i]=Integer.parseInt(sc.next());
        b[i]=Integer.parseInt(sc.next());
        road[a[i]]++;
        road[b[i]]++;
    } int i = 0; int i = 0; i 0 i < m i m i++ i++ i {
        a[i]=Integer.parseInt(sc.next());
        b[i]=Integer.parseInt(sc.next());
        road[a[i]]++;
        road[b[i]]++;
    } {
        a[i]=Integer.parseInt(sc.next());
        b[i]=Integer.parseInt(sc.next());
        road[a[i]]++;
        road[b[i]]++;
    } a[i]=Integer.parseInt(sc.next()) a[i] a i Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc b[i]=Integer.parseInt(sc.next()) b[i] b i Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc road[a[i]]++ road[a[i]] road a[i] a i road[b[i]]++ road[b[i]] road b[i] b i for (int i =1; i <= n; i++) {
        out.println(road[i]);
    } int i =1; int i =1; i 1 i <= n i n i++ i++ i {
        out.println(road[i]);
    } {
        out.println(road[i]);
    } out.println(road[i]) out.println out road[i] road i String[] args args public class Main {
public static void main(String[] args){
Scanner sc = new Scanner(in);
    int n = Integer.parseInt(sc.next());
    int m = Integer.parseInt(sc.next());
int[] a=new int[m];
int[] b=new int[m];
int[] road=new int[n+1];
    for (int i = 0; i < m; i++) {
        a[i]=Integer.parseInt(sc.next());
        b[i]=Integer.parseInt(sc.next());
        road[a[i]]++;
        road[b[i]]++;
    }
    for (int i =1; i <= n; i++) {
        out.println(road[i]);
    }
}
} public class Main {
public static void main(String[] args){
Scanner sc = new Scanner(in);
    int n = Integer.parseInt(sc.next());
    int m = Integer.parseInt(sc.next());
int[] a=new int[m];
int[] b=new int[m];
int[] road=new int[n+1];
    for (int i = 0; i < m; i++) {
        a[i]=Integer.parseInt(sc.next());
        b[i]=Integer.parseInt(sc.next());
        road[a[i]]++;
        road[b[i]]++;
    }
    for (int i =1; i <= n; i++) {
        out.println(road[i]);
    }
}
} Main
import java.util.*;
import static java.lang.System.*;
import static java.lang.Math.*;
public class Main {
public static void main(String[] args){
Scanner sc = new Scanner(in);
    int n = Integer.parseInt(sc.next());
    int m = Integer.parseInt(sc.next());
int[] a=new int[m];
int[] b=new int[m];
int[] road=new int[n+1];
    for (int i = 0; i < m; i++) {
        a[i]=Integer.parseInt(sc.next());
        b[i]=Integer.parseInt(sc.next());
        road[a[i]]++;
        road[b[i]]++;
    }
    for (int i =1; i <= n; i++) {
        out.println(road[i]);
    }
}
}