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

public class Main {
    public static void main(String[] args) throws Exception {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String line = br.readLine();
        String[] number = line.split(" ");
        int n = Integer.parseInt(number[0]);
        int m = Integer.parseInt(number[1]);
        int[] a = new int[n];
        int k = 0;
        int l = 0;
        for(int i = 0; i < m; i++) {
            line = br.readLine();
            k = Integer.parseInt(line.split(" ")[0]);
            l = Integer.parseInt(line.split(" ")[1]);
            a[k - 1]++;
            a[l - 1]++;
        }
        for(int i = 0; i < n; i++) {
            System.out.println(a[i]);
        }
    }
} import java.io.BufferedReader; BufferedReader java.io import java.io.InputStreamReader; InputStreamReader java.io public class Main {
    public static void main(String[] args) throws Exception {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String line = br.readLine();
        String[] number = line.split(" ");
        int n = Integer.parseInt(number[0]);
        int m = Integer.parseInt(number[1]);
        int[] a = new int[n];
        int k = 0;
        int l = 0;
        for(int i = 0; i < m; i++) {
            line = br.readLine();
            k = Integer.parseInt(line.split(" ")[0]);
            l = Integer.parseInt(line.split(" ")[1]);
            a[k - 1]++;
            a[l - 1]++;
        }
        for(int i = 0; i < n; i++) {
            System.out.println(a[i]);
        }
    }
} Main public static void main(String[] args) throws Exception {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String line = br.readLine();
        String[] number = line.split(" ");
        int n = Integer.parseInt(number[0]);
        int m = Integer.parseInt(number[1]);
        int[] a = new int[n];
        int k = 0;
        int l = 0;
        for(int i = 0; i < m; i++) {
            line = br.readLine();
            k = Integer.parseInt(line.split(" ")[0]);
            l = Integer.parseInt(line.split(" ")[1]);
            a[k - 1]++;
            a[l - 1]++;
        }
        for(int i = 0; i < n; i++) {
            System.out.println(a[i]);
        }
    } main {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String line = br.readLine();
        String[] number = line.split(" ");
        int n = Integer.parseInt(number[0]);
        int m = Integer.parseInt(number[1]);
        int[] a = new int[n];
        int k = 0;
        int l = 0;
        for(int i = 0; i < m; i++) {
            line = br.readLine();
            k = Integer.parseInt(line.split(" ")[0]);
            l = Integer.parseInt(line.split(" ")[1]);
            a[k - 1]++;
            a[l - 1]++;
        }
        for(int i = 0; i < n; i++) {
            System.out.println(a[i]);
        }
    } BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) String line = br.readLine(); line br.readLine() br.readLine br String[] number = line.split(" "); number line.split(" ") line.split line " " int n = Integer.parseInt(number[0]); n Integer.parseInt(number[0]) Integer.parseInt Integer number[0] number 0 int m = Integer.parseInt(number[1]); m Integer.parseInt(number[1]) Integer.parseInt Integer number[1] number 1 int[] a = new int[n]; a new int[n] n int k = 0; k 0 int l = 0; l 0 for(int i = 0; i < m; i++) {
            line = br.readLine();
            k = Integer.parseInt(line.split(" ")[0]);
            l = Integer.parseInt(line.split(" ")[1]);
            a[k - 1]++;
            a[l - 1]++;
        } int i = 0; int i = 0; i 0 i < m i m i++ i++ i {
            line = br.readLine();
            k = Integer.parseInt(line.split(" ")[0]);
            l = Integer.parseInt(line.split(" ")[1]);
            a[k - 1]++;
            a[l - 1]++;
        } {
            line = br.readLine();
            k = Integer.parseInt(line.split(" ")[0]);
            l = Integer.parseInt(line.split(" ")[1]);
            a[k - 1]++;
            a[l - 1]++;
        } line = br.readLine() line br.readLine() br.readLine br k = Integer.parseInt(line.split(" ")[0]) k Integer.parseInt(line.split(" ")[0]) Integer.parseInt Integer line.split(" ")[0] line.split(" ") line.split line " " 0 l = Integer.parseInt(line.split(" ")[1]) l Integer.parseInt(line.split(" ")[1]) Integer.parseInt Integer line.split(" ")[1] line.split(" ") line.split line " " 1 a[k - 1]++ a[k - 1] a k - 1 k 1 a[l - 1]++ a[l - 1] a l - 1 l 1 for(int i = 0; i < n; i++) {
            System.out.println(a[i]);
        } int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
            System.out.println(a[i]);
        } {
            System.out.println(a[i]);
        } System.out.println(a[i]) System.out.println System.out System System.out a[i] a i String[] args args public class Main {
    public static void main(String[] args) throws Exception {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String line = br.readLine();
        String[] number = line.split(" ");
        int n = Integer.parseInt(number[0]);
        int m = Integer.parseInt(number[1]);
        int[] a = new int[n];
        int k = 0;
        int l = 0;
        for(int i = 0; i < m; i++) {
            line = br.readLine();
            k = Integer.parseInt(line.split(" ")[0]);
            l = Integer.parseInt(line.split(" ")[1]);
            a[k - 1]++;
            a[l - 1]++;
        }
        for(int i = 0; i < n; i++) {
            System.out.println(a[i]);
        }
    }
} public class Main {
    public static void main(String[] args) throws Exception {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String line = br.readLine();
        String[] number = line.split(" ");
        int n = Integer.parseInt(number[0]);
        int m = Integer.parseInt(number[1]);
        int[] a = new int[n];
        int k = 0;
        int l = 0;
        for(int i = 0; i < m; i++) {
            line = br.readLine();
            k = Integer.parseInt(line.split(" ")[0]);
            l = Integer.parseInt(line.split(" ")[1]);
            a[k - 1]++;
            a[l - 1]++;
        }
        for(int i = 0; i < n; i++) {
            System.out.println(a[i]);
        }
    }
} Main
import java.io.BufferedReader;
import java.io.InputStreamReader;

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