import java.util.*;
import java.io.*;

public class Main{
  public static void main(String[] args){
    Scanner scan = new Scanner(System.in);
    int n = scan.nextInt();
    int m = scan.nextInt();
    int[] r = new int[2*m];
    int[] rr = new int[n+1];

    for(int i = 0; i < 2*m; i++){r[i] = scan.nextInt();}
    //for(int i = 0; i < 2*m; i++){System.out.println(r[i]);}

    for(int i = 0; i < n+1; i++){rr[i] = 0;}

    for(int i = 0; i < 2*m; i++){
      rr[r[i]]++;
    }

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

  }
} import java.util.*; util.* java import java.io.*; io.* java public class Main{
  public static void main(String[] args){
    Scanner scan = new Scanner(System.in);
    int n = scan.nextInt();
    int m = scan.nextInt();
    int[] r = new int[2*m];
    int[] rr = new int[n+1];

    for(int i = 0; i < 2*m; i++){r[i] = scan.nextInt();}
    //for(int i = 0; i < 2*m; i++){System.out.println(r[i]);}

    for(int i = 0; i < n+1; i++){rr[i] = 0;}

    for(int i = 0; i < 2*m; i++){
      rr[r[i]]++;
    }

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

  }
} Main public static void main(String[] args){
    Scanner scan = new Scanner(System.in);
    int n = scan.nextInt();
    int m = scan.nextInt();
    int[] r = new int[2*m];
    int[] rr = new int[n+1];

    for(int i = 0; i < 2*m; i++){r[i] = scan.nextInt();}
    //for(int i = 0; i < 2*m; i++){System.out.println(r[i]);}

    for(int i = 0; i < n+1; i++){rr[i] = 0;}

    for(int i = 0; i < 2*m; i++){
      rr[r[i]]++;
    }

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

  } main {
    Scanner scan = new Scanner(System.in);
    int n = scan.nextInt();
    int m = scan.nextInt();
    int[] r = new int[2*m];
    int[] rr = new int[n+1];

    for(int i = 0; i < 2*m; i++){r[i] = scan.nextInt();}
    //for(int i = 0; i < 2*m; i++){System.out.println(r[i]);}

    for(int i = 0; i < n+1; i++){rr[i] = 0;}

    for(int i = 0; i < 2*m; i++){
      rr[r[i]]++;
    }

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

  } Scanner scan = new Scanner(System.in); scan new Scanner(System.in) int n = scan.nextInt(); n scan.nextInt() scan.nextInt scan int m = scan.nextInt(); m scan.nextInt() scan.nextInt scan int[] r = new int[2*m]; r new int[2*m] 2*m 2 m int[] rr = new int[n+1]; rr new int[n+1] n+1 n 1 for(int i = 0; i < 2*m; i++){r[i] = scan.nextInt();} int i = 0; int i = 0; i 0 i < 2*m i 2*m 2 m i++ i++ i {r[i] = scan.nextInt();} {r[i] = scan.nextInt();} r[i] = scan.nextInt() r[i] r i scan.nextInt() scan.nextInt scan for(int i = 0; i < n+1; i++){rr[i] = 0;} int i = 0; int i = 0; i 0 i < n+1 i n+1 n 1 i++ i++ i {rr[i] = 0;} {rr[i] = 0;} rr[i] = 0 rr[i] rr i 0 for(int i = 0; i < 2*m; i++){
      rr[r[i]]++;
    } int i = 0; int i = 0; i 0 i < 2*m i 2*m 2 m i++ i++ i {
      rr[r[i]]++;
    } {
      rr[r[i]]++;
    } rr[r[i]]++ rr[r[i]] rr r[i] r i for(int i = 1; i <= n; i++){
      System.out.println(rr[i]);
    } int i = 1; int i = 1; i 1 i <= n i n i++ i++ i {
      System.out.println(rr[i]);
    } {
      System.out.println(rr[i]);
    } System.out.println(rr[i]) System.out.println System.out System System.out rr[i] rr i String[] args args public class Main{
  public static void main(String[] args){
    Scanner scan = new Scanner(System.in);
    int n = scan.nextInt();
    int m = scan.nextInt();
    int[] r = new int[2*m];
    int[] rr = new int[n+1];

    for(int i = 0; i < 2*m; i++){r[i] = scan.nextInt();}
    //for(int i = 0; i < 2*m; i++){System.out.println(r[i]);}

    for(int i = 0; i < n+1; i++){rr[i] = 0;}

    for(int i = 0; i < 2*m; i++){
      rr[r[i]]++;
    }

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

  }
} public class Main{
  public static void main(String[] args){
    Scanner scan = new Scanner(System.in);
    int n = scan.nextInt();
    int m = scan.nextInt();
    int[] r = new int[2*m];
    int[] rr = new int[n+1];

    for(int i = 0; i < 2*m; i++){r[i] = scan.nextInt();}
    //for(int i = 0; i < 2*m; i++){System.out.println(r[i]);}

    for(int i = 0; i < n+1; i++){rr[i] = 0;}

    for(int i = 0; i < 2*m; i++){
      rr[r[i]]++;
    }

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

  }
} Main
import java.util.*;
import java.io.*;

public class Main{
  public static void main(String[] args){
    Scanner scan = new Scanner(System.in);
    int n = scan.nextInt();
    int m = scan.nextInt();
    int[] r = new int[2*m];
    int[] rr = new int[n+1];

    for(int i = 0; i < 2*m; i++){r[i] = scan.nextInt();}
    //for(int i = 0; i < 2*m; i++){System.out.println(r[i]);}

    for(int i = 0; i < n+1; i++){rr[i] = 0;}

    for(int i = 0; i < 2*m; i++){
      rr[r[i]]++;
    }

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

  }
}
