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