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

public class Main {
    public static void main(String[] args) {
        try {
            // 標準入力
            InputStreamReader isr = new InputStreamReader(System.in);
            BufferedReader br = new BufferedReader(isr);
            String strArr[] = br.readLine().split(" ");
            int n = Integer.parseInt(strArr[0]);
            int m = Integer.parseInt(strArr[1]);
            int ans[] = new int[n];
            for (int i = 0; i < m; i++) {
                strArr = br.readLine().split(" ");
                int a = Integer.parseInt(strArr[0]);
                ans[a - 1]++;
                int b = Integer.parseInt(strArr[1]);
                ans[b - 1]++;
            }
            for (int i = 0; i < n; i++) {
                System.out.println(ans[i]);
            }
        } catch (IOException e) {
            e.printStackTrace();
        }
    }
} import java.io.BufferedReader; BufferedReader java.io import java.io.IOException; IOException java.io import java.io.InputStreamReader; InputStreamReader java.io public class Main {
    public static void main(String[] args) {
        try {
            // 標準入力
            InputStreamReader isr = new InputStreamReader(System.in);
            BufferedReader br = new BufferedReader(isr);
            String strArr[] = br.readLine().split(" ");
            int n = Integer.parseInt(strArr[0]);
            int m = Integer.parseInt(strArr[1]);
            int ans[] = new int[n];
            for (int i = 0; i < m; i++) {
                strArr = br.readLine().split(" ");
                int a = Integer.parseInt(strArr[0]);
                ans[a - 1]++;
                int b = Integer.parseInt(strArr[1]);
                ans[b - 1]++;
            }
            for (int i = 0; i < n; i++) {
                System.out.println(ans[i]);
            }
        } catch (IOException e) {
            e.printStackTrace();
        }
    }
} Main public static void main(String[] args) {
        try {
            // 標準入力
            InputStreamReader isr = new InputStreamReader(System.in);
            BufferedReader br = new BufferedReader(isr);
            String strArr[] = br.readLine().split(" ");
            int n = Integer.parseInt(strArr[0]);
            int m = Integer.parseInt(strArr[1]);
            int ans[] = new int[n];
            for (int i = 0; i < m; i++) {
                strArr = br.readLine().split(" ");
                int a = Integer.parseInt(strArr[0]);
                ans[a - 1]++;
                int b = Integer.parseInt(strArr[1]);
                ans[b - 1]++;
            }
            for (int i = 0; i < n; i++) {
                System.out.println(ans[i]);
            }
        } catch (IOException e) {
            e.printStackTrace();
        }
    } main {
        try {
            // 標準入力
            InputStreamReader isr = new InputStreamReader(System.in);
            BufferedReader br = new BufferedReader(isr);
            String strArr[] = br.readLine().split(" ");
            int n = Integer.parseInt(strArr[0]);
            int m = Integer.parseInt(strArr[1]);
            int ans[] = new int[n];
            for (int i = 0; i < m; i++) {
                strArr = br.readLine().split(" ");
                int a = Integer.parseInt(strArr[0]);
                ans[a - 1]++;
                int b = Integer.parseInt(strArr[1]);
                ans[b - 1]++;
            }
            for (int i = 0; i < n; i++) {
                System.out.println(ans[i]);
            }
        } catch (IOException e) {
            e.printStackTrace();
        }
    } try {
            // 標準入力
            InputStreamReader isr = new InputStreamReader(System.in);
            BufferedReader br = new BufferedReader(isr);
            String strArr[] = br.readLine().split(" ");
            int n = Integer.parseInt(strArr[0]);
            int m = Integer.parseInt(strArr[1]);
            int ans[] = new int[n];
            for (int i = 0; i < m; i++) {
                strArr = br.readLine().split(" ");
                int a = Integer.parseInt(strArr[0]);
                ans[a - 1]++;
                int b = Integer.parseInt(strArr[1]);
                ans[b - 1]++;
            }
            for (int i = 0; i < n; i++) {
                System.out.println(ans[i]);
            }
        } catch (IOException e) {
            e.printStackTrace();
        } catch (IOException e) {
            e.printStackTrace();
        } IOException e {
            e.printStackTrace();
        } e.printStackTrace() e.printStackTrace e {
            // 標準入力
            InputStreamReader isr = new InputStreamReader(System.in);
            BufferedReader br = new BufferedReader(isr);
            String strArr[] = br.readLine().split(" ");
            int n = Integer.parseInt(strArr[0]);
            int m = Integer.parseInt(strArr[1]);
            int ans[] = new int[n];
            for (int i = 0; i < m; i++) {
                strArr = br.readLine().split(" ");
                int a = Integer.parseInt(strArr[0]);
                ans[a - 1]++;
                int b = Integer.parseInt(strArr[1]);
                ans[b - 1]++;
            }
            for (int i = 0; i < n; i++) {
                System.out.println(ans[i]);
            }
        } InputStreamReader isr = new InputStreamReader(System.in); isr new InputStreamReader(System.in) BufferedReader br = new BufferedReader(isr); br new BufferedReader(isr) String strArr[] = br.readLine().split(" "); strArr br.readLine().split(" ") br.readLine().split br.readLine() br.readLine br " " int n = Integer.parseInt(strArr[0]); n Integer.parseInt(strArr[0]) Integer.parseInt Integer strArr[0] strArr 0 int m = Integer.parseInt(strArr[1]); m Integer.parseInt(strArr[1]) Integer.parseInt Integer strArr[1] strArr 1 int ans[] = new int[n]; ans new int[n] n for (int i = 0; i < m; i++) {
                strArr = br.readLine().split(" ");
                int a = Integer.parseInt(strArr[0]);
                ans[a - 1]++;
                int b = Integer.parseInt(strArr[1]);
                ans[b - 1]++;
            } int i = 0; int i = 0; i 0 i < m i m i++ i++ i {
                strArr = br.readLine().split(" ");
                int a = Integer.parseInt(strArr[0]);
                ans[a - 1]++;
                int b = Integer.parseInt(strArr[1]);
                ans[b - 1]++;
            } {
                strArr = br.readLine().split(" ");
                int a = Integer.parseInt(strArr[0]);
                ans[a - 1]++;
                int b = Integer.parseInt(strArr[1]);
                ans[b - 1]++;
            } strArr = br.readLine().split(" ") strArr br.readLine().split(" ") br.readLine().split br.readLine() br.readLine br " " int a = Integer.parseInt(strArr[0]); a Integer.parseInt(strArr[0]) Integer.parseInt Integer strArr[0] strArr 0 ans[a - 1]++ ans[a - 1] ans a - 1 a 1 int b = Integer.parseInt(strArr[1]); b Integer.parseInt(strArr[1]) Integer.parseInt Integer strArr[1] strArr 1 ans[b - 1]++ ans[b - 1] ans b - 1 b 1 for (int i = 0; i < n; i++) {
                System.out.println(ans[i]);
            } int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
                System.out.println(ans[i]);
            } {
                System.out.println(ans[i]);
            } System.out.println(ans[i]) System.out.println System.out System System.out ans[i] ans i String[] args args public class Main {
    public static void main(String[] args) {
        try {
            // 標準入力
            InputStreamReader isr = new InputStreamReader(System.in);
            BufferedReader br = new BufferedReader(isr);
            String strArr[] = br.readLine().split(" ");
            int n = Integer.parseInt(strArr[0]);
            int m = Integer.parseInt(strArr[1]);
            int ans[] = new int[n];
            for (int i = 0; i < m; i++) {
                strArr = br.readLine().split(" ");
                int a = Integer.parseInt(strArr[0]);
                ans[a - 1]++;
                int b = Integer.parseInt(strArr[1]);
                ans[b - 1]++;
            }
            for (int i = 0; i < n; i++) {
                System.out.println(ans[i]);
            }
        } catch (IOException e) {
            e.printStackTrace();
        }
    }
} public class Main {
    public static void main(String[] args) {
        try {
            // 標準入力
            InputStreamReader isr = new InputStreamReader(System.in);
            BufferedReader br = new BufferedReader(isr);
            String strArr[] = br.readLine().split(" ");
            int n = Integer.parseInt(strArr[0]);
            int m = Integer.parseInt(strArr[1]);
            int ans[] = new int[n];
            for (int i = 0; i < m; i++) {
                strArr = br.readLine().split(" ");
                int a = Integer.parseInt(strArr[0]);
                ans[a - 1]++;
                int b = Integer.parseInt(strArr[1]);
                ans[b - 1]++;
            }
            for (int i = 0; i < n; i++) {
                System.out.println(ans[i]);
            }
        } catch (IOException e) {
            e.printStackTrace();
        }
    }
} Main
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

public class Main {
    public static void main(String[] args) {
        try {
            // 標準入力
            InputStreamReader isr = new InputStreamReader(System.in);
            BufferedReader br = new BufferedReader(isr);
            String strArr[] = br.readLine().split(" ");
            int n = Integer.parseInt(strArr[0]);
            int m = Integer.parseInt(strArr[1]);
            int ans[] = new int[n];
            for (int i = 0; i < m; i++) {
                strArr = br.readLine().split(" ");
                int a = Integer.parseInt(strArr[0]);
                ans[a - 1]++;
                int b = Integer.parseInt(strArr[1]);
                ans[b - 1]++;
            }
            for (int i = 0; i < n; i++) {
                System.out.println(ans[i]);
            }
        } catch (IOException e) {
            e.printStackTrace();
        }
    }
}