
import java.util.*;

public class Main {
  public static void main(String[] args) {
    @SuppressWarnings("resource")
    Scanner sc = new Scanner(System.in);
    int cntCity = sc.nextInt();
    int cntRoad = sc.nextInt();
    int[] city = new int[cntCity];

    for (int i = 0; i < cntRoad; i++) {
      city[sc.nextInt() - 1] += 1;
      city[sc.nextInt() - 1] += 1;
    }

    for (int i : city) {
      System.out.println(i);
    }
  }
} import java.util.*; util.* java public class Main {
  public static void main(String[] args) {
    @SuppressWarnings("resource")
    Scanner sc = new Scanner(System.in);
    int cntCity = sc.nextInt();
    int cntRoad = sc.nextInt();
    int[] city = new int[cntCity];

    for (int i = 0; i < cntRoad; i++) {
      city[sc.nextInt() - 1] += 1;
      city[sc.nextInt() - 1] += 1;
    }

    for (int i : city) {
      System.out.println(i);
    }
  }
} Main public static void main(String[] args) {
    @SuppressWarnings("resource")
    Scanner sc = new Scanner(System.in);
    int cntCity = sc.nextInt();
    int cntRoad = sc.nextInt();
    int[] city = new int[cntCity];

    for (int i = 0; i < cntRoad; i++) {
      city[sc.nextInt() - 1] += 1;
      city[sc.nextInt() - 1] += 1;
    }

    for (int i : city) {
      System.out.println(i);
    }
  } main {
    @SuppressWarnings("resource")
    Scanner sc = new Scanner(System.in);
    int cntCity = sc.nextInt();
    int cntRoad = sc.nextInt();
    int[] city = new int[cntCity];

    for (int i = 0; i < cntRoad; i++) {
      city[sc.nextInt() - 1] += 1;
      city[sc.nextInt() - 1] += 1;
    }

    for (int i : city) {
      System.out.println(i);
    }
  } @SuppressWarnings("resource")
    Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int cntCity = sc.nextInt(); cntCity sc.nextInt() sc.nextInt sc int cntRoad = sc.nextInt(); cntRoad sc.nextInt() sc.nextInt sc int[] city = new int[cntCity]; city new int[cntCity] cntCity for (int i = 0; i < cntRoad; i++) {
      city[sc.nextInt() - 1] += 1;
      city[sc.nextInt() - 1] += 1;
    } int i = 0; int i = 0; i 0 i < cntRoad i cntRoad i++ i++ i {
      city[sc.nextInt() - 1] += 1;
      city[sc.nextInt() - 1] += 1;
    } {
      city[sc.nextInt() - 1] += 1;
      city[sc.nextInt() - 1] += 1;
    } city[sc.nextInt() - 1] += 1 city[sc.nextInt() - 1] city sc.nextInt() - 1 sc.nextInt() sc.nextInt sc 1 1 city[sc.nextInt() - 1] += 1 city[sc.nextInt() - 1] city sc.nextInt() - 1 sc.nextInt() sc.nextInt sc 1 1 for (int i : city) {
      System.out.println(i);
    } int i city {
      System.out.println(i);
    } {
      System.out.println(i);
    } System.out.println(i) System.out.println System.out System System.out i String[] args args public class Main {
  public static void main(String[] args) {
    @SuppressWarnings("resource")
    Scanner sc = new Scanner(System.in);
    int cntCity = sc.nextInt();
    int cntRoad = sc.nextInt();
    int[] city = new int[cntCity];

    for (int i = 0; i < cntRoad; i++) {
      city[sc.nextInt() - 1] += 1;
      city[sc.nextInt() - 1] += 1;
    }

    for (int i : city) {
      System.out.println(i);
    }
  }
} public class Main {
  public static void main(String[] args) {
    @SuppressWarnings("resource")
    Scanner sc = new Scanner(System.in);
    int cntCity = sc.nextInt();
    int cntRoad = sc.nextInt();
    int[] city = new int[cntCity];

    for (int i = 0; i < cntRoad; i++) {
      city[sc.nextInt() - 1] += 1;
      city[sc.nextInt() - 1] += 1;
    }

    for (int i : city) {
      System.out.println(i);
    }
  }
} Main

import java.util.*;

public class Main {
  public static void main(String[] args) {
    @SuppressWarnings("resource")
    Scanner sc = new Scanner(System.in);
    int cntCity = sc.nextInt();
    int cntRoad = sc.nextInt();
    int[] city = new int[cntCity];

    for (int i = 0; i < cntRoad; i++) {
      city[sc.nextInt() - 1] += 1;
      city[sc.nextInt() - 1] += 1;
    }

    for (int i : city) {
      System.out.println(i);
    }
  }
}
