import java.io.*;

public class Main {
  public static void main(String[] args) throws IOException {
    BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
    
    String[] line1 = br.readLine().split(" ");
    int n = Integer.parseInt(line1[0]);
    int m = Integer.parseInt(line1[1]);
    
    int[] cities = new int[n];
    int a;
    int b;
    String[] data;
    for (int i=0; i<m; i++){
      data = br.readLine().split(" ");
      a = Integer.parseInt(data[0])-1;
      b = Integer.parseInt(data[1])-1;
      cities[a]++;
      cities[b]++;
    }
    for (int i : cities){
      System.out.println(i);
    }
  }
} import java.io.*; io.* java public class Main {
  public static void main(String[] args) throws IOException {
    BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
    
    String[] line1 = br.readLine().split(" ");
    int n = Integer.parseInt(line1[0]);
    int m = Integer.parseInt(line1[1]);
    
    int[] cities = new int[n];
    int a;
    int b;
    String[] data;
    for (int i=0; i<m; i++){
      data = br.readLine().split(" ");
      a = Integer.parseInt(data[0])-1;
      b = Integer.parseInt(data[1])-1;
      cities[a]++;
      cities[b]++;
    }
    for (int i : cities){
      System.out.println(i);
    }
  }
} Main public static void main(String[] args) throws IOException {
    BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
    
    String[] line1 = br.readLine().split(" ");
    int n = Integer.parseInt(line1[0]);
    int m = Integer.parseInt(line1[1]);
    
    int[] cities = new int[n];
    int a;
    int b;
    String[] data;
    for (int i=0; i<m; i++){
      data = br.readLine().split(" ");
      a = Integer.parseInt(data[0])-1;
      b = Integer.parseInt(data[1])-1;
      cities[a]++;
      cities[b]++;
    }
    for (int i : cities){
      System.out.println(i);
    }
  } main {
    BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
    
    String[] line1 = br.readLine().split(" ");
    int n = Integer.parseInt(line1[0]);
    int m = Integer.parseInt(line1[1]);
    
    int[] cities = new int[n];
    int a;
    int b;
    String[] data;
    for (int i=0; i<m; i++){
      data = br.readLine().split(" ");
      a = Integer.parseInt(data[0])-1;
      b = Integer.parseInt(data[1])-1;
      cities[a]++;
      cities[b]++;
    }
    for (int i : cities){
      System.out.println(i);
    }
  } BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) String[] line1 = br.readLine().split(" "); line1 br.readLine().split(" ") br.readLine().split br.readLine() br.readLine br " " int n = Integer.parseInt(line1[0]); n Integer.parseInt(line1[0]) Integer.parseInt Integer line1[0] line1 0 int m = Integer.parseInt(line1[1]); m Integer.parseInt(line1[1]) Integer.parseInt Integer line1[1] line1 1 int[] cities = new int[n]; cities new int[n] n int a; a int b; b String[] data; data for (int i=0; i<m; i++){
      data = br.readLine().split(" ");
      a = Integer.parseInt(data[0])-1;
      b = Integer.parseInt(data[1])-1;
      cities[a]++;
      cities[b]++;
    } int i=0; int i=0; i 0 i<m i m i++ i++ i {
      data = br.readLine().split(" ");
      a = Integer.parseInt(data[0])-1;
      b = Integer.parseInt(data[1])-1;
      cities[a]++;
      cities[b]++;
    } {
      data = br.readLine().split(" ");
      a = Integer.parseInt(data[0])-1;
      b = Integer.parseInt(data[1])-1;
      cities[a]++;
      cities[b]++;
    } data = br.readLine().split(" ") data br.readLine().split(" ") br.readLine().split br.readLine() br.readLine br " " a = Integer.parseInt(data[0])-1 a Integer.parseInt(data[0])-1 Integer.parseInt(data[0]) Integer.parseInt Integer data[0] data 0 1 b = Integer.parseInt(data[1])-1 b Integer.parseInt(data[1])-1 Integer.parseInt(data[1]) Integer.parseInt Integer data[1] data 1 1 cities[a]++ cities[a] cities a cities[b]++ cities[b] cities b for (int i : cities){
      System.out.println(i);
    } int i cities {
      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) throws IOException {
    BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
    
    String[] line1 = br.readLine().split(" ");
    int n = Integer.parseInt(line1[0]);
    int m = Integer.parseInt(line1[1]);
    
    int[] cities = new int[n];
    int a;
    int b;
    String[] data;
    for (int i=0; i<m; i++){
      data = br.readLine().split(" ");
      a = Integer.parseInt(data[0])-1;
      b = Integer.parseInt(data[1])-1;
      cities[a]++;
      cities[b]++;
    }
    for (int i : cities){
      System.out.println(i);
    }
  }
} public class Main {
  public static void main(String[] args) throws IOException {
    BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
    
    String[] line1 = br.readLine().split(" ");
    int n = Integer.parseInt(line1[0]);
    int m = Integer.parseInt(line1[1]);
    
    int[] cities = new int[n];
    int a;
    int b;
    String[] data;
    for (int i=0; i<m; i++){
      data = br.readLine().split(" ");
      a = Integer.parseInt(data[0])-1;
      b = Integer.parseInt(data[1])-1;
      cities[a]++;
      cities[b]++;
    }
    for (int i : cities){
      System.out.println(i);
    }
  }
} Main
import java.io.*;

public class Main {
  public static void main(String[] args) throws IOException {
    BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
    
    String[] line1 = br.readLine().split(" ");
    int n = Integer.parseInt(line1[0]);
    int m = Integer.parseInt(line1[1]);
    
    int[] cities = new int[n];
    int a;
    int b;
    String[] data;
    for (int i=0; i<m; i++){
      data = br.readLine().split(" ");
      a = Integer.parseInt(data[0])-1;
      b = Integer.parseInt(data[1])-1;
      cities[a]++;
      cities[b]++;
    }
    for (int i : cities){
      System.out.println(i);
    }
  }
}
