import java.io.*;
import java.util.*;

public class Main {
    static ContestScanner in;
    static Writer out;
    public static void main(String[] args) {
        Main main = new Main();
        try {
            in = new ContestScanner();
            out = new Writer();
            main.solve();
            out.close();
            in.close();
        } catch (IOException e) {
            e.printStackTrace();
        }
    }

    void solve() throws IOException {
        int n = in.nextInt();
        int m = in.nextInt();
        int[] into = new int[n];
        for (int i = 0; i < m; i++) {
            int a = in.nextInt() - 1;
            int b = in.nextInt() - 1;
            into[a]++;
            into[b]++;
        }
        for (int i = 0; i < n; i++) {
            System.out.println(into[i]);
        }
    }
}


class Writer extends PrintWriter{
    public Writer(String filename)throws IOException
    {super(new BufferedWriter(new FileWriter(filename)));}
    public Writer()throws IOException{super(System.out);}
}
class ContestScanner implements Closeable{
    private BufferedReader in;private int c=-2;
    public ContestScanner()throws IOException
    {in=new BufferedReader(new InputStreamReader(System.in));}
    public ContestScanner(String filename)throws IOException
    {in=new BufferedReader(new InputStreamReader(new FileInputStream(filename)));}
    public String nextToken()throws IOException {
        StringBuilder sb=new StringBuilder();
        while((c=in.read())!=-1&&Character.isWhitespace(c));
        while(c!=-1&&!Character.isWhitespace(c)){sb.append((char)c);c=in.read();}
        return sb.toString();
    }
    public String readLine()throws IOException{
        StringBuilder sb=new StringBuilder();if(c==-2)c=in.read();
        while(c!=-1&&c!='\n'&&c!='\r'){sb.append((char)c);c=in.read();}
        return sb.toString();
    }
    public long nextLong()throws IOException,NumberFormatException
    {return Long.parseLong(nextToken());}
    public int nextInt()throws NumberFormatException,IOException
    {return(int)nextLong();}
    public double nextDouble()throws NumberFormatException,IOException
    {return Double.parseDouble(nextToken());}
    public void close() throws IOException {in.close();}
} import java.io.*; io.* java import java.util.*; util.* java public class Main {
    static ContestScanner in;
    static Writer out;
    public static void main(String[] args) {
        Main main = new Main();
        try {
            in = new ContestScanner();
            out = new Writer();
            main.solve();
            out.close();
            in.close();
        } catch (IOException e) {
            e.printStackTrace();
        }
    }

    void solve() throws IOException {
        int n = in.nextInt();
        int m = in.nextInt();
        int[] into = new int[n];
        for (int i = 0; i < m; i++) {
            int a = in.nextInt() - 1;
            int b = in.nextInt() - 1;
            into[a]++;
            into[b]++;
        }
        for (int i = 0; i < n; i++) {
            System.out.println(into[i]);
        }
    }
} Main static ContestScanner in; in static Writer out; out public static void main(String[] args) {
        Main main = new Main();
        try {
            in = new ContestScanner();
            out = new Writer();
            main.solve();
            out.close();
            in.close();
        } catch (IOException e) {
            e.printStackTrace();
        }
    } main {
        Main main = new Main();
        try {
            in = new ContestScanner();
            out = new Writer();
            main.solve();
            out.close();
            in.close();
        } catch (IOException e) {
            e.printStackTrace();
        }
    } Main main = new Main(); main new Main() try {
            in = new ContestScanner();
            out = new Writer();
            main.solve();
            out.close();
            in.close();
        } catch (IOException e) {
            e.printStackTrace();
        } catch (IOException e) {
            e.printStackTrace();
        } IOException e {
            e.printStackTrace();
        } e.printStackTrace() e.printStackTrace e {
            in = new ContestScanner();
            out = new Writer();
            main.solve();
            out.close();
            in.close();
        } in = new ContestScanner() in new ContestScanner() out = new Writer() out new Writer() main.solve() main.solve main out.close() out.close out in.close() in.close in String[] args args void solve() throws IOException {
        int n = in.nextInt();
        int m = in.nextInt();
        int[] into = new int[n];
        for (int i = 0; i < m; i++) {
            int a = in.nextInt() - 1;
            int b = in.nextInt() - 1;
            into[a]++;
            into[b]++;
        }
        for (int i = 0; i < n; i++) {
            System.out.println(into[i]);
        }
    } solve {
        int n = in.nextInt();
        int m = in.nextInt();
        int[] into = new int[n];
        for (int i = 0; i < m; i++) {
            int a = in.nextInt() - 1;
            int b = in.nextInt() - 1;
            into[a]++;
            into[b]++;
        }
        for (int i = 0; i < n; i++) {
            System.out.println(into[i]);
        }
    } int n = in.nextInt(); n in.nextInt() in.nextInt in int m = in.nextInt(); m in.nextInt() in.nextInt in int[] into = new int[n]; into new int[n] n for (int i = 0; i < m; i++) {
            int a = in.nextInt() - 1;
            int b = in.nextInt() - 1;
            into[a]++;
            into[b]++;
        } int i = 0; int i = 0; i 0 i < m i m i++ i++ i {
            int a = in.nextInt() - 1;
            int b = in.nextInt() - 1;
            into[a]++;
            into[b]++;
        } {
            int a = in.nextInt() - 1;
            int b = in.nextInt() - 1;
            into[a]++;
            into[b]++;
        } int a = in.nextInt() - 1; a in.nextInt() - 1 in.nextInt() in.nextInt in 1 int b = in.nextInt() - 1; b in.nextInt() - 1 in.nextInt() in.nextInt in 1 into[a]++ into[a] into a into[b]++ into[b] into b for (int i = 0; i < n; i++) {
            System.out.println(into[i]);
        } int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
            System.out.println(into[i]);
        } {
            System.out.println(into[i]);
        } System.out.println(into[i]) System.out.println System.out System System.out into[i] into i class Writer extends PrintWriter{
    public Writer(String filename)throws IOException
    {super(new BufferedWriter(new FileWriter(filename)));}
    public Writer()throws IOException{super(System.out);}
} Writer public Writer(String filename)throws IOException
    {super(new BufferedWriter(new FileWriter(filename)));} Writer {super(new BufferedWriter(new FileWriter(filename)));} super(new BufferedWriter(new FileWriter(filename))) super new BufferedWriter(new FileWriter(filename)) String filename filename public Writer()throws IOException{super(System.out);} Writer {super(System.out);} super(System.out) super System.out System System.out PrintWriter class ContestScanner implements Closeable{
    private BufferedReader in;private int c=-2;
    public ContestScanner()throws IOException
    {in=new BufferedReader(new InputStreamReader(System.in));}
    public ContestScanner(String filename)throws IOException
    {in=new BufferedReader(new InputStreamReader(new FileInputStream(filename)));}
    public String nextToken()throws IOException {
        StringBuilder sb=new StringBuilder();
        while((c=in.read())!=-1&&Character.isWhitespace(c));
        while(c!=-1&&!Character.isWhitespace(c)){sb.append((char)c);c=in.read();}
        return sb.toString();
    }
    public String readLine()throws IOException{
        StringBuilder sb=new StringBuilder();if(c==-2)c=in.read();
        while(c!=-1&&c!='\n'&&c!='\r'){sb.append((char)c);c=in.read();}
        return sb.toString();
    }
    public long nextLong()throws IOException,NumberFormatException
    {return Long.parseLong(nextToken());}
    public int nextInt()throws NumberFormatException,IOException
    {return(int)nextLong();}
    public double nextDouble()throws NumberFormatException,IOException
    {return Double.parseDouble(nextToken());}
    public void close() throws IOException {in.close();}
} ContestScanner private BufferedReader in; in private int c=-2; c -2 2 public ContestScanner()throws IOException
    {in=new BufferedReader(new InputStreamReader(System.in));} ContestScanner {in=new BufferedReader(new InputStreamReader(System.in));} in=new BufferedReader(new InputStreamReader(System.in)) in new BufferedReader(new InputStreamReader(System.in)) public ContestScanner(String filename)throws IOException
    {in=new BufferedReader(new InputStreamReader(new FileInputStream(filename)));} ContestScanner {in=new BufferedReader(new InputStreamReader(new FileInputStream(filename)));} in=new BufferedReader(new InputStreamReader(new FileInputStream(filename))) in new BufferedReader(new InputStreamReader(new FileInputStream(filename))) String filename filename public String nextToken()throws IOException {
        StringBuilder sb=new StringBuilder();
        while((c=in.read())!=-1&&Character.isWhitespace(c));
        while(c!=-1&&!Character.isWhitespace(c)){sb.append((char)c);c=in.read();}
        return sb.toString();
    } nextToken {
        StringBuilder sb=new StringBuilder();
        while((c=in.read())!=-1&&Character.isWhitespace(c));
        while(c!=-1&&!Character.isWhitespace(c)){sb.append((char)c);c=in.read();}
        return sb.toString();
    } StringBuilder sb=new StringBuilder(); sb new StringBuilder() while((c=in.read())!=-1&&Character.isWhitespace(c)); (c=in.read())!=-1&&Character.isWhitespace(c) (c=in.read())!=-1 (c=in.read()) c in.read() in.read in -1 1 Character.isWhitespace(c) Character.isWhitespace Character c while(c!=-1&&!Character.isWhitespace(c)){sb.append((char)c);c=in.read();} c!=-1&&!Character.isWhitespace(c) c!=-1 c -1 1 !Character.isWhitespace(c) Character.isWhitespace(c) Character.isWhitespace Character c {sb.append((char)c);c=in.read();} sb.append((char)c) sb.append sb (char)c c=in.read() c in.read() in.read in return sb.toString(); sb.toString() sb.toString sb public String readLine()throws IOException{
        StringBuilder sb=new StringBuilder();if(c==-2)c=in.read();
        while(c!=-1&&c!='\n'&&c!='\r'){sb.append((char)c);c=in.read();}
        return sb.toString();
    } readLine {
        StringBuilder sb=new StringBuilder();if(c==-2)c=in.read();
        while(c!=-1&&c!='\n'&&c!='\r'){sb.append((char)c);c=in.read();}
        return sb.toString();
    } StringBuilder sb=new StringBuilder(); sb new StringBuilder() if(c==-2)c=in.read(); c==-2 c -2 2 c=in.read() c in.read() in.read in while(c!=-1&&c!='\n'&&c!='\r'){sb.append((char)c);c=in.read();} c!=-1&&c!='\n'&&c!='\r' c!=-1&&c!='\n'&&c!='\r' c!=-1 c -1 1 c!='\n' c '\n' c!='\r' c '\r' {sb.append((char)c);c=in.read();} sb.append((char)c) sb.append sb (char)c c=in.read() c in.read() in.read in return sb.toString(); sb.toString() sb.toString sb public long nextLong()throws IOException,NumberFormatException
    {return Long.parseLong(nextToken());} nextLong {return Long.parseLong(nextToken());} return Long.parseLong(nextToken()); Long.parseLong(nextToken()) Long.parseLong Long nextToken() nextToken public int nextInt()throws NumberFormatException,IOException
    {return(int)nextLong();} nextInt {return(int)nextLong();} return(int)nextLong(); (int)nextLong() nextLong public double nextDouble()throws NumberFormatException,IOException
    {return Double.parseDouble(nextToken());} nextDouble {return Double.parseDouble(nextToken());} return Double.parseDouble(nextToken()); Double.parseDouble(nextToken()) Double.parseDouble Double nextToken() nextToken public void close() throws IOException {in.close();} close {in.close();} in.close() in.close in Closeable public class Main {
    static ContestScanner in;
    static Writer out;
    public static void main(String[] args) {
        Main main = new Main();
        try {
            in = new ContestScanner();
            out = new Writer();
            main.solve();
            out.close();
            in.close();
        } catch (IOException e) {
            e.printStackTrace();
        }
    }

    void solve() throws IOException {
        int n = in.nextInt();
        int m = in.nextInt();
        int[] into = new int[n];
        for (int i = 0; i < m; i++) {
            int a = in.nextInt() - 1;
            int b = in.nextInt() - 1;
            into[a]++;
            into[b]++;
        }
        for (int i = 0; i < n; i++) {
            System.out.println(into[i]);
        }
    }
} public class Main {
    static ContestScanner in;
    static Writer out;
    public static void main(String[] args) {
        Main main = new Main();
        try {
            in = new ContestScanner();
            out = new Writer();
            main.solve();
            out.close();
            in.close();
        } catch (IOException e) {
            e.printStackTrace();
        }
    }

    void solve() throws IOException {
        int n = in.nextInt();
        int m = in.nextInt();
        int[] into = new int[n];
        for (int i = 0; i < m; i++) {
            int a = in.nextInt() - 1;
            int b = in.nextInt() - 1;
            into[a]++;
            into[b]++;
        }
        for (int i = 0; i < n; i++) {
            System.out.println(into[i]);
        }
    }
} Main
import java.io.*;
import java.util.*;

public class Main {
    static ContestScanner in;
    static Writer out;
    public static void main(String[] args) {
        Main main = new Main();
        try {
            in = new ContestScanner();
            out = new Writer();
            main.solve();
            out.close();
            in.close();
        } catch (IOException e) {
            e.printStackTrace();
        }
    }

    void solve() throws IOException {
        int n = in.nextInt();
        int m = in.nextInt();
        int[] into = new int[n];
        for (int i = 0; i < m; i++) {
            int a = in.nextInt() - 1;
            int b = in.nextInt() - 1;
            into[a]++;
            into[b]++;
        }
        for (int i = 0; i < n; i++) {
            System.out.println(into[i]);
        }
    }
}


class Writer extends PrintWriter{
    public Writer(String filename)throws IOException
    {super(new BufferedWriter(new FileWriter(filename)));}
    public Writer()throws IOException{super(System.out);}
}
class ContestScanner implements Closeable{
    private BufferedReader in;private int c=-2;
    public ContestScanner()throws IOException
    {in=new BufferedReader(new InputStreamReader(System.in));}
    public ContestScanner(String filename)throws IOException
    {in=new BufferedReader(new InputStreamReader(new FileInputStream(filename)));}
    public String nextToken()throws IOException {
        StringBuilder sb=new StringBuilder();
        while((c=in.read())!=-1&&Character.isWhitespace(c));
        while(c!=-1&&!Character.isWhitespace(c)){sb.append((char)c);c=in.read();}
        return sb.toString();
    }
    public String readLine()throws IOException{
        StringBuilder sb=new StringBuilder();if(c==-2)c=in.read();
        while(c!=-1&&c!='\n'&&c!='\r'){sb.append((char)c);c=in.read();}
        return sb.toString();
    }
    public long nextLong()throws IOException,NumberFormatException
    {return Long.parseLong(nextToken());}
    public int nextInt()throws NumberFormatException,IOException
    {return(int)nextLong();}
    public double nextDouble()throws NumberFormatException,IOException
    {return Double.parseDouble(nextToken());}
    public void close() throws IOException {in.close();}
}
