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

public class Main {
    public static void main(String[] args) throws Exception {
        // Your code here!
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String[] nm = br.readLine().split(" ");
        int n = Integer.parseInt(nm[0]);
        int m = Integer.parseInt(nm[1]);
        int[] ans = new int[n+1];
        String[] road;
        int city1, city2;
        
        for (int i = 0; i < m; i++) {
            road = br.readLine().split(" ");
            city1 = Integer.parseInt(road[0]);
            city2 = Integer.parseInt(road[1]);
            ans[city1]++;
            ans[city2]++;
        }
        
        for (int i = 1; i <= n; i++) {
            System.out.println(ans[i]);
        }
    }
} import java.io.BufferedReader; BufferedReader java.io import java.io.InputStreamReader; InputStreamReader java.io import java.util.Arrays; Arrays java.util public class Main {
    public static void main(String[] args) throws Exception {
        // Your code here!
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String[] nm = br.readLine().split(" ");
        int n = Integer.parseInt(nm[0]);
        int m = Integer.parseInt(nm[1]);
        int[] ans = new int[n+1];
        String[] road;
        int city1, city2;
        
        for (int i = 0; i < m; i++) {
            road = br.readLine().split(" ");
            city1 = Integer.parseInt(road[0]);
            city2 = Integer.parseInt(road[1]);
            ans[city1]++;
            ans[city2]++;
        }
        
        for (int i = 1; i <= n; i++) {
            System.out.println(ans[i]);
        }
    }
} Main public static void main(String[] args) throws Exception {
        // Your code here!
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String[] nm = br.readLine().split(" ");
        int n = Integer.parseInt(nm[0]);
        int m = Integer.parseInt(nm[1]);
        int[] ans = new int[n+1];
        String[] road;
        int city1, city2;
        
        for (int i = 0; i < m; i++) {
            road = br.readLine().split(" ");
            city1 = Integer.parseInt(road[0]);
            city2 = Integer.parseInt(road[1]);
            ans[city1]++;
            ans[city2]++;
        }
        
        for (int i = 1; i <= n; i++) {
            System.out.println(ans[i]);
        }
    } main {
        // Your code here!
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String[] nm = br.readLine().split(" ");
        int n = Integer.parseInt(nm[0]);
        int m = Integer.parseInt(nm[1]);
        int[] ans = new int[n+1];
        String[] road;
        int city1, city2;
        
        for (int i = 0; i < m; i++) {
            road = br.readLine().split(" ");
            city1 = Integer.parseInt(road[0]);
            city2 = Integer.parseInt(road[1]);
            ans[city1]++;
            ans[city2]++;
        }
        
        for (int i = 1; i <= n; i++) {
            System.out.println(ans[i]);
        }
    } BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) String[] nm = br.readLine().split(" "); nm br.readLine().split(" ") br.readLine().split br.readLine() br.readLine br " " int n = Integer.parseInt(nm[0]); n Integer.parseInt(nm[0]) Integer.parseInt Integer nm[0] nm 0 int m = Integer.parseInt(nm[1]); m Integer.parseInt(nm[1]) Integer.parseInt Integer nm[1] nm 1 int[] ans = new int[n+1]; ans new int[n+1] n+1 n 1 String[] road; road int city1 city1 city2; city2 for (int i = 0; i < m; i++) {
            road = br.readLine().split(" ");
            city1 = Integer.parseInt(road[0]);
            city2 = Integer.parseInt(road[1]);
            ans[city1]++;
            ans[city2]++;
        } int i = 0; int i = 0; i 0 i < m i m i++ i++ i {
            road = br.readLine().split(" ");
            city1 = Integer.parseInt(road[0]);
            city2 = Integer.parseInt(road[1]);
            ans[city1]++;
            ans[city2]++;
        } {
            road = br.readLine().split(" ");
            city1 = Integer.parseInt(road[0]);
            city2 = Integer.parseInt(road[1]);
            ans[city1]++;
            ans[city2]++;
        } road = br.readLine().split(" ") road br.readLine().split(" ") br.readLine().split br.readLine() br.readLine br " " city1 = Integer.parseInt(road[0]) city1 Integer.parseInt(road[0]) Integer.parseInt Integer road[0] road 0 city2 = Integer.parseInt(road[1]) city2 Integer.parseInt(road[1]) Integer.parseInt Integer road[1] road 1 ans[city1]++ ans[city1] ans city1 ans[city2]++ ans[city2] ans city2 for (int i = 1; i <= n; i++) {
            System.out.println(ans[i]);
        } int i = 1; int i = 1; i 1 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) throws Exception {
        // Your code here!
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String[] nm = br.readLine().split(" ");
        int n = Integer.parseInt(nm[0]);
        int m = Integer.parseInt(nm[1]);
        int[] ans = new int[n+1];
        String[] road;
        int city1, city2;
        
        for (int i = 0; i < m; i++) {
            road = br.readLine().split(" ");
            city1 = Integer.parseInt(road[0]);
            city2 = Integer.parseInt(road[1]);
            ans[city1]++;
            ans[city2]++;
        }
        
        for (int i = 1; i <= n; i++) {
            System.out.println(ans[i]);
        }
    }
} public class Main {
    public static void main(String[] args) throws Exception {
        // Your code here!
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String[] nm = br.readLine().split(" ");
        int n = Integer.parseInt(nm[0]);
        int m = Integer.parseInt(nm[1]);
        int[] ans = new int[n+1];
        String[] road;
        int city1, city2;
        
        for (int i = 0; i < m; i++) {
            road = br.readLine().split(" ");
            city1 = Integer.parseInt(road[0]);
            city2 = Integer.parseInt(road[1]);
            ans[city1]++;
            ans[city2]++;
        }
        
        for (int i = 1; i <= n; i++) {
            System.out.println(ans[i]);
        }
    }
} Main
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.util.Arrays;

public class Main {
    public static void main(String[] args) throws Exception {
        // Your code here!
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String[] nm = br.readLine().split(" ");
        int n = Integer.parseInt(nm[0]);
        int m = Integer.parseInt(nm[1]);
        int[] ans = new int[n+1];
        String[] road;
        int city1, city2;
        
        for (int i = 0; i < m; i++) {
            road = br.readLine().split(" ");
            city1 = Integer.parseInt(road[0]);
            city2 = Integer.parseInt(road[1]);
            ans[city1]++;
            ans[city2]++;
        }
        
        for (int i = 1; i <= n; i++) {
            System.out.println(ans[i]);
        }
    }
}
