import java.io.BufferedReader;
import java.io.InputStreamReader;

class Main{

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

} import java.io.BufferedReader; BufferedReader java.io import java.io.InputStreamReader; InputStreamReader java.io class Main{

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

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

class Main{

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

}