import java.util.Scanner;

public class Main{
  public static void main(String[] args){

    Scanner scn = new Scanner(System.in);
    String nm = scn.nextLine();
    String nStr = nm.split(" ",0)[0];
    String mStr = nm.split(" ",0)[1];
    int n = Integer.parseInt(nStr);
    int m = Integer.parseInt(mStr);

    int[] toshi = new int[n];
    for(int i=0; i<m; i++){
      String oneLine = scn.nextLine();
      String fromStr = oneLine.split(" ",0)[0];
      String toStr = oneLine.split(" ",0)[1];

      int from = Integer.parseInt(fromStr);
      int to = Integer.parseInt(toStr);

      toshi[from-1] ++;
      toshi[to-1] ++;
    }

    for(int i=0; i<n; i++){
      System.out.println(toshi[i]);
    }

  }
} import java.util.Scanner; Scanner java.util public class Main{
  public static void main(String[] args){

    Scanner scn = new Scanner(System.in);
    String nm = scn.nextLine();
    String nStr = nm.split(" ",0)[0];
    String mStr = nm.split(" ",0)[1];
    int n = Integer.parseInt(nStr);
    int m = Integer.parseInt(mStr);

    int[] toshi = new int[n];
    for(int i=0; i<m; i++){
      String oneLine = scn.nextLine();
      String fromStr = oneLine.split(" ",0)[0];
      String toStr = oneLine.split(" ",0)[1];

      int from = Integer.parseInt(fromStr);
      int to = Integer.parseInt(toStr);

      toshi[from-1] ++;
      toshi[to-1] ++;
    }

    for(int i=0; i<n; i++){
      System.out.println(toshi[i]);
    }

  }
} Main public static void main(String[] args){

    Scanner scn = new Scanner(System.in);
    String nm = scn.nextLine();
    String nStr = nm.split(" ",0)[0];
    String mStr = nm.split(" ",0)[1];
    int n = Integer.parseInt(nStr);
    int m = Integer.parseInt(mStr);

    int[] toshi = new int[n];
    for(int i=0; i<m; i++){
      String oneLine = scn.nextLine();
      String fromStr = oneLine.split(" ",0)[0];
      String toStr = oneLine.split(" ",0)[1];

      int from = Integer.parseInt(fromStr);
      int to = Integer.parseInt(toStr);

      toshi[from-1] ++;
      toshi[to-1] ++;
    }

    for(int i=0; i<n; i++){
      System.out.println(toshi[i]);
    }

  } main {

    Scanner scn = new Scanner(System.in);
    String nm = scn.nextLine();
    String nStr = nm.split(" ",0)[0];
    String mStr = nm.split(" ",0)[1];
    int n = Integer.parseInt(nStr);
    int m = Integer.parseInt(mStr);

    int[] toshi = new int[n];
    for(int i=0; i<m; i++){
      String oneLine = scn.nextLine();
      String fromStr = oneLine.split(" ",0)[0];
      String toStr = oneLine.split(" ",0)[1];

      int from = Integer.parseInt(fromStr);
      int to = Integer.parseInt(toStr);

      toshi[from-1] ++;
      toshi[to-1] ++;
    }

    for(int i=0; i<n; i++){
      System.out.println(toshi[i]);
    }

  } Scanner scn = new Scanner(System.in); scn new Scanner(System.in) String nm = scn.nextLine(); nm scn.nextLine() scn.nextLine scn String nStr = nm.split(" ",0)[0]; nStr nm.split(" ",0)[0] nm.split(" ",0) nm.split nm " " 0 0 String mStr = nm.split(" ",0)[1]; mStr nm.split(" ",0)[1] nm.split(" ",0) nm.split nm " " 0 1 int n = Integer.parseInt(nStr); n Integer.parseInt(nStr) Integer.parseInt Integer nStr int m = Integer.parseInt(mStr); m Integer.parseInt(mStr) Integer.parseInt Integer mStr int[] toshi = new int[n]; toshi new int[n] n for(int i=0; i<m; i++){
      String oneLine = scn.nextLine();
      String fromStr = oneLine.split(" ",0)[0];
      String toStr = oneLine.split(" ",0)[1];

      int from = Integer.parseInt(fromStr);
      int to = Integer.parseInt(toStr);

      toshi[from-1] ++;
      toshi[to-1] ++;
    } int i=0; int i=0; i 0 i<m i m i++ i++ i {
      String oneLine = scn.nextLine();
      String fromStr = oneLine.split(" ",0)[0];
      String toStr = oneLine.split(" ",0)[1];

      int from = Integer.parseInt(fromStr);
      int to = Integer.parseInt(toStr);

      toshi[from-1] ++;
      toshi[to-1] ++;
    } {
      String oneLine = scn.nextLine();
      String fromStr = oneLine.split(" ",0)[0];
      String toStr = oneLine.split(" ",0)[1];

      int from = Integer.parseInt(fromStr);
      int to = Integer.parseInt(toStr);

      toshi[from-1] ++;
      toshi[to-1] ++;
    } String oneLine = scn.nextLine(); oneLine scn.nextLine() scn.nextLine scn String fromStr = oneLine.split(" ",0)[0]; fromStr oneLine.split(" ",0)[0] oneLine.split(" ",0) oneLine.split oneLine " " 0 0 String toStr = oneLine.split(" ",0)[1]; toStr oneLine.split(" ",0)[1] oneLine.split(" ",0) oneLine.split oneLine " " 0 1 int from = Integer.parseInt(fromStr); from Integer.parseInt(fromStr) Integer.parseInt Integer fromStr int to = Integer.parseInt(toStr); to Integer.parseInt(toStr) Integer.parseInt Integer toStr toshi[from-1] ++ toshi[from-1] toshi from-1 from 1 toshi[to-1] ++ toshi[to-1] toshi to-1 to 1 for(int i=0; i<n; i++){
      System.out.println(toshi[i]);
    } int i=0; int i=0; i 0 i<n i n i++ i++ i {
      System.out.println(toshi[i]);
    } {
      System.out.println(toshi[i]);
    } System.out.println(toshi[i]) System.out.println System.out System System.out toshi[i] toshi i String[] args args public class Main{
  public static void main(String[] args){

    Scanner scn = new Scanner(System.in);
    String nm = scn.nextLine();
    String nStr = nm.split(" ",0)[0];
    String mStr = nm.split(" ",0)[1];
    int n = Integer.parseInt(nStr);
    int m = Integer.parseInt(mStr);

    int[] toshi = new int[n];
    for(int i=0; i<m; i++){
      String oneLine = scn.nextLine();
      String fromStr = oneLine.split(" ",0)[0];
      String toStr = oneLine.split(" ",0)[1];

      int from = Integer.parseInt(fromStr);
      int to = Integer.parseInt(toStr);

      toshi[from-1] ++;
      toshi[to-1] ++;
    }

    for(int i=0; i<n; i++){
      System.out.println(toshi[i]);
    }

  }
} public class Main{
  public static void main(String[] args){

    Scanner scn = new Scanner(System.in);
    String nm = scn.nextLine();
    String nStr = nm.split(" ",0)[0];
    String mStr = nm.split(" ",0)[1];
    int n = Integer.parseInt(nStr);
    int m = Integer.parseInt(mStr);

    int[] toshi = new int[n];
    for(int i=0; i<m; i++){
      String oneLine = scn.nextLine();
      String fromStr = oneLine.split(" ",0)[0];
      String toStr = oneLine.split(" ",0)[1];

      int from = Integer.parseInt(fromStr);
      int to = Integer.parseInt(toStr);

      toshi[from-1] ++;
      toshi[to-1] ++;
    }

    for(int i=0; i<n; i++){
      System.out.println(toshi[i]);
    }

  }
} Main
import java.util.Scanner;

public class Main{
  public static void main(String[] args){

    Scanner scn = new Scanner(System.in);
    String nm = scn.nextLine();
    String nStr = nm.split(" ",0)[0];
    String mStr = nm.split(" ",0)[1];
    int n = Integer.parseInt(nStr);
    int m = Integer.parseInt(mStr);

    int[] toshi = new int[n];
    for(int i=0; i<m; i++){
      String oneLine = scn.nextLine();
      String fromStr = oneLine.split(" ",0)[0];
      String toStr = oneLine.split(" ",0)[1];

      int from = Integer.parseInt(fromStr);
      int to = Integer.parseInt(toStr);

      toshi[from-1] ++;
      toshi[to-1] ++;
    }

    for(int i=0; i<n; i++){
      System.out.println(toshi[i]);
    }

  }
}