import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.util.StringTokenizer;

public class Main {
    public static void main(String[] args)throws Exception {
        BufferedReader input = new BufferedReader(new InputStreamReader(System.in));
        StringTokenizer tokenizer = new StringTokenizer(input.readLine());
        int a = Integer.parseInt(tokenizer.nextToken());
        int b = Integer.parseInt(tokenizer.nextToken());
        int [] city = new int[a + 1];

        for (int i = 0; i < b; i++) {
            tokenizer = new StringTokenizer(input.readLine());
            city[Integer.parseInt(tokenizer.nextToken())]++;
            city[Integer.parseInt(tokenizer.nextToken())]++;
        }
        StringBuilder output = new StringBuilder();
        for (int i = 1; i <= a; i++) {
            output.append(city[i]).append("\n");
        }
        System.out.print(output);
    }
} import java.io.BufferedReader; BufferedReader java.io import java.io.InputStreamReader; InputStreamReader java.io import java.util.StringTokenizer; StringTokenizer java.util public class Main {
    public static void main(String[] args)throws Exception {
        BufferedReader input = new BufferedReader(new InputStreamReader(System.in));
        StringTokenizer tokenizer = new StringTokenizer(input.readLine());
        int a = Integer.parseInt(tokenizer.nextToken());
        int b = Integer.parseInt(tokenizer.nextToken());
        int [] city = new int[a + 1];

        for (int i = 0; i < b; i++) {
            tokenizer = new StringTokenizer(input.readLine());
            city[Integer.parseInt(tokenizer.nextToken())]++;
            city[Integer.parseInt(tokenizer.nextToken())]++;
        }
        StringBuilder output = new StringBuilder();
        for (int i = 1; i <= a; i++) {
            output.append(city[i]).append("\n");
        }
        System.out.print(output);
    }
} Main public static void main(String[] args)throws Exception {
        BufferedReader input = new BufferedReader(new InputStreamReader(System.in));
        StringTokenizer tokenizer = new StringTokenizer(input.readLine());
        int a = Integer.parseInt(tokenizer.nextToken());
        int b = Integer.parseInt(tokenizer.nextToken());
        int [] city = new int[a + 1];

        for (int i = 0; i < b; i++) {
            tokenizer = new StringTokenizer(input.readLine());
            city[Integer.parseInt(tokenizer.nextToken())]++;
            city[Integer.parseInt(tokenizer.nextToken())]++;
        }
        StringBuilder output = new StringBuilder();
        for (int i = 1; i <= a; i++) {
            output.append(city[i]).append("\n");
        }
        System.out.print(output);
    } main {
        BufferedReader input = new BufferedReader(new InputStreamReader(System.in));
        StringTokenizer tokenizer = new StringTokenizer(input.readLine());
        int a = Integer.parseInt(tokenizer.nextToken());
        int b = Integer.parseInt(tokenizer.nextToken());
        int [] city = new int[a + 1];

        for (int i = 0; i < b; i++) {
            tokenizer = new StringTokenizer(input.readLine());
            city[Integer.parseInt(tokenizer.nextToken())]++;
            city[Integer.parseInt(tokenizer.nextToken())]++;
        }
        StringBuilder output = new StringBuilder();
        for (int i = 1; i <= a; i++) {
            output.append(city[i]).append("\n");
        }
        System.out.print(output);
    } BufferedReader input = new BufferedReader(new InputStreamReader(System.in)); input new BufferedReader(new InputStreamReader(System.in)) StringTokenizer tokenizer = new StringTokenizer(input.readLine()); tokenizer new StringTokenizer(input.readLine()) int a = Integer.parseInt(tokenizer.nextToken()); a Integer.parseInt(tokenizer.nextToken()) Integer.parseInt Integer tokenizer.nextToken() tokenizer.nextToken tokenizer int b = Integer.parseInt(tokenizer.nextToken()); b Integer.parseInt(tokenizer.nextToken()) Integer.parseInt Integer tokenizer.nextToken() tokenizer.nextToken tokenizer int [] city = new int[a + 1]; city new int[a + 1] a + 1 a 1 for (int i = 0; i < b; i++) {
            tokenizer = new StringTokenizer(input.readLine());
            city[Integer.parseInt(tokenizer.nextToken())]++;
            city[Integer.parseInt(tokenizer.nextToken())]++;
        } int i = 0; int i = 0; i 0 i < b i b i++ i++ i {
            tokenizer = new StringTokenizer(input.readLine());
            city[Integer.parseInt(tokenizer.nextToken())]++;
            city[Integer.parseInt(tokenizer.nextToken())]++;
        } {
            tokenizer = new StringTokenizer(input.readLine());
            city[Integer.parseInt(tokenizer.nextToken())]++;
            city[Integer.parseInt(tokenizer.nextToken())]++;
        } tokenizer = new StringTokenizer(input.readLine()) tokenizer new StringTokenizer(input.readLine()) city[Integer.parseInt(tokenizer.nextToken())]++ city[Integer.parseInt(tokenizer.nextToken())] city Integer.parseInt(tokenizer.nextToken()) Integer.parseInt Integer tokenizer.nextToken() tokenizer.nextToken tokenizer city[Integer.parseInt(tokenizer.nextToken())]++ city[Integer.parseInt(tokenizer.nextToken())] city Integer.parseInt(tokenizer.nextToken()) Integer.parseInt Integer tokenizer.nextToken() tokenizer.nextToken tokenizer StringBuilder output = new StringBuilder(); output new StringBuilder() for (int i = 1; i <= a; i++) {
            output.append(city[i]).append("\n");
        } int i = 1; int i = 1; i 1 i <= a i a i++ i++ i {
            output.append(city[i]).append("\n");
        } {
            output.append(city[i]).append("\n");
        } output.append(city[i]).append("\n") output.append(city[i]).append output.append(city[i]) output.append output city[i] city i "\n" System.out.print(output) System.out.print System.out System System.out output String[] args args public class Main {
    public static void main(String[] args)throws Exception {
        BufferedReader input = new BufferedReader(new InputStreamReader(System.in));
        StringTokenizer tokenizer = new StringTokenizer(input.readLine());
        int a = Integer.parseInt(tokenizer.nextToken());
        int b = Integer.parseInt(tokenizer.nextToken());
        int [] city = new int[a + 1];

        for (int i = 0; i < b; i++) {
            tokenizer = new StringTokenizer(input.readLine());
            city[Integer.parseInt(tokenizer.nextToken())]++;
            city[Integer.parseInt(tokenizer.nextToken())]++;
        }
        StringBuilder output = new StringBuilder();
        for (int i = 1; i <= a; i++) {
            output.append(city[i]).append("\n");
        }
        System.out.print(output);
    }
} public class Main {
    public static void main(String[] args)throws Exception {
        BufferedReader input = new BufferedReader(new InputStreamReader(System.in));
        StringTokenizer tokenizer = new StringTokenizer(input.readLine());
        int a = Integer.parseInt(tokenizer.nextToken());
        int b = Integer.parseInt(tokenizer.nextToken());
        int [] city = new int[a + 1];

        for (int i = 0; i < b; i++) {
            tokenizer = new StringTokenizer(input.readLine());
            city[Integer.parseInt(tokenizer.nextToken())]++;
            city[Integer.parseInt(tokenizer.nextToken())]++;
        }
        StringBuilder output = new StringBuilder();
        for (int i = 1; i <= a; i++) {
            output.append(city[i]).append("\n");
        }
        System.out.print(output);
    }
} Main
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.util.StringTokenizer;

public class Main {
    public static void main(String[] args)throws Exception {
        BufferedReader input = new BufferedReader(new InputStreamReader(System.in));
        StringTokenizer tokenizer = new StringTokenizer(input.readLine());
        int a = Integer.parseInt(tokenizer.nextToken());
        int b = Integer.parseInt(tokenizer.nextToken());
        int [] city = new int[a + 1];

        for (int i = 0; i < b; i++) {
            tokenizer = new StringTokenizer(input.readLine());
            city[Integer.parseInt(tokenizer.nextToken())]++;
            city[Integer.parseInt(tokenizer.nextToken())]++;
        }
        StringBuilder output = new StringBuilder();
        for (int i = 1; i <= a; i++) {
            output.append(city[i]).append("\n");
        }
        System.out.print(output);
    }
}
