import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.util.Arrays;
import java.util.StringTokenizer;

public class Main {
	public static void main(String[] args) throws IOException {
		FastScanner in = new FastScanner(System.in);
		int n = in.nextInt();
		int m= in.nextInt();
		int [] a= new int[n];
		for(int i=0; i<m; i++){
			int b= in.nextInt()-1;
			int c= in.nextInt()-1;
			a[b]++;
			a[c]++;
		}
		for (int i = 0; i < a.length; i++) {
			System.out.println(a[i]);
		}
		
	}
	static class FastScanner {
		BufferedReader br;
		StringTokenizer st;

		public FastScanner(InputStream in) {
			br = new BufferedReader(new InputStreamReader(in));
			st = new StringTokenizer("");
		}

		public double nextDouble() throws NumberFormatException, IOException {
			return Double.parseDouble(next());
		}

		public String next() throws IOException {
			if (!st.hasMoreTokens()) {
				st = new StringTokenizer(br.readLine());
				return next();
			}
			return st.nextToken();
		}

		public int nextInt() throws IOException {
			return Integer.parseInt(next());
		}

		public long nextLong() throws IOException {
			return Long.parseLong(next());
		}
	}
} import java.io.BufferedReader; BufferedReader java.io import java.io.IOException; IOException java.io import java.io.InputStream; InputStream java.io import java.io.InputStreamReader; InputStreamReader java.io import java.util.Arrays; Arrays java.util import java.util.StringTokenizer; StringTokenizer java.util public class Main {
	public static void main(String[] args) throws IOException {
		FastScanner in = new FastScanner(System.in);
		int n = in.nextInt();
		int m= in.nextInt();
		int [] a= new int[n];
		for(int i=0; i<m; i++){
			int b= in.nextInt()-1;
			int c= in.nextInt()-1;
			a[b]++;
			a[c]++;
		}
		for (int i = 0; i < a.length; i++) {
			System.out.println(a[i]);
		}
		
	}
	static class FastScanner {
		BufferedReader br;
		StringTokenizer st;

		public FastScanner(InputStream in) {
			br = new BufferedReader(new InputStreamReader(in));
			st = new StringTokenizer("");
		}

		public double nextDouble() throws NumberFormatException, IOException {
			return Double.parseDouble(next());
		}

		public String next() throws IOException {
			if (!st.hasMoreTokens()) {
				st = new StringTokenizer(br.readLine());
				return next();
			}
			return st.nextToken();
		}

		public int nextInt() throws IOException {
			return Integer.parseInt(next());
		}

		public long nextLong() throws IOException {
			return Long.parseLong(next());
		}
	}
} Main public static void main(String[] args) throws IOException {
		FastScanner in = new FastScanner(System.in);
		int n = in.nextInt();
		int m= in.nextInt();
		int [] a= new int[n];
		for(int i=0; i<m; i++){
			int b= in.nextInt()-1;
			int c= in.nextInt()-1;
			a[b]++;
			a[c]++;
		}
		for (int i = 0; i < a.length; i++) {
			System.out.println(a[i]);
		}
		
	} main {
		FastScanner in = new FastScanner(System.in);
		int n = in.nextInt();
		int m= in.nextInt();
		int [] a= new int[n];
		for(int i=0; i<m; i++){
			int b= in.nextInt()-1;
			int c= in.nextInt()-1;
			a[b]++;
			a[c]++;
		}
		for (int i = 0; i < a.length; i++) {
			System.out.println(a[i]);
		}
		
	} FastScanner in = new FastScanner(System.in); in new FastScanner(System.in) int n = in.nextInt(); n in.nextInt() in.nextInt in int m= in.nextInt(); m in.nextInt() in.nextInt in int [] a= new int[n]; a new int[n] n for(int i=0; i<m; i++){
			int b= in.nextInt()-1;
			int c= in.nextInt()-1;
			a[b]++;
			a[c]++;
		} int i=0; int i=0; i 0 i<m i m i++ i++ i {
			int b= in.nextInt()-1;
			int c= in.nextInt()-1;
			a[b]++;
			a[c]++;
		} {
			int b= in.nextInt()-1;
			int c= in.nextInt()-1;
			a[b]++;
			a[c]++;
		} int b= in.nextInt()-1; b in.nextInt()-1 in.nextInt() in.nextInt in 1 int c= in.nextInt()-1; c in.nextInt()-1 in.nextInt() in.nextInt in 1 a[b]++ a[b] a b a[c]++ a[c] a c for (int i = 0; i < a.length; i++) {
			System.out.println(a[i]);
		} int i = 0; int i = 0; i 0 i < a.length i a.length a a.length 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 static class FastScanner {
		BufferedReader br;
		StringTokenizer st;

		public FastScanner(InputStream in) {
			br = new BufferedReader(new InputStreamReader(in));
			st = new StringTokenizer("");
		}

		public double nextDouble() throws NumberFormatException, IOException {
			return Double.parseDouble(next());
		}

		public String next() throws IOException {
			if (!st.hasMoreTokens()) {
				st = new StringTokenizer(br.readLine());
				return next();
			}
			return st.nextToken();
		}

		public int nextInt() throws IOException {
			return Integer.parseInt(next());
		}

		public long nextLong() throws IOException {
			return Long.parseLong(next());
		}
	} FastScanner BufferedReader br; br StringTokenizer st; st public FastScanner(InputStream in) {
			br = new BufferedReader(new InputStreamReader(in));
			st = new StringTokenizer("");
		} FastScanner {
			br = new BufferedReader(new InputStreamReader(in));
			st = new StringTokenizer("");
		} br = new BufferedReader(new InputStreamReader(in)) br new BufferedReader(new InputStreamReader(in)) st = new StringTokenizer("") st new StringTokenizer("") InputStream in in public double nextDouble() throws NumberFormatException, IOException {
			return Double.parseDouble(next());
		} nextDouble {
			return Double.parseDouble(next());
		} return Double.parseDouble(next()); Double.parseDouble(next()) Double.parseDouble Double next() next public String next() throws IOException {
			if (!st.hasMoreTokens()) {
				st = new StringTokenizer(br.readLine());
				return next();
			}
			return st.nextToken();
		} next {
			if (!st.hasMoreTokens()) {
				st = new StringTokenizer(br.readLine());
				return next();
			}
			return st.nextToken();
		} if (!st.hasMoreTokens()) {
				st = new StringTokenizer(br.readLine());
				return next();
			} !st.hasMoreTokens() st.hasMoreTokens() st.hasMoreTokens st {
				st = new StringTokenizer(br.readLine());
				return next();
			} st = new StringTokenizer(br.readLine()) st new StringTokenizer(br.readLine()) return next(); next() next return st.nextToken(); st.nextToken() st.nextToken st public int nextInt() throws IOException {
			return Integer.parseInt(next());
		} nextInt {
			return Integer.parseInt(next());
		} return Integer.parseInt(next()); Integer.parseInt(next()) Integer.parseInt Integer next() next public long nextLong() throws IOException {
			return Long.parseLong(next());
		} nextLong {
			return Long.parseLong(next());
		} return Long.parseLong(next()); Long.parseLong(next()) Long.parseLong Long next() next public class Main {
	public static void main(String[] args) throws IOException {
		FastScanner in = new FastScanner(System.in);
		int n = in.nextInt();
		int m= in.nextInt();
		int [] a= new int[n];
		for(int i=0; i<m; i++){
			int b= in.nextInt()-1;
			int c= in.nextInt()-1;
			a[b]++;
			a[c]++;
		}
		for (int i = 0; i < a.length; i++) {
			System.out.println(a[i]);
		}
		
	}
	static class FastScanner {
		BufferedReader br;
		StringTokenizer st;

		public FastScanner(InputStream in) {
			br = new BufferedReader(new InputStreamReader(in));
			st = new StringTokenizer("");
		}

		public double nextDouble() throws NumberFormatException, IOException {
			return Double.parseDouble(next());
		}

		public String next() throws IOException {
			if (!st.hasMoreTokens()) {
				st = new StringTokenizer(br.readLine());
				return next();
			}
			return st.nextToken();
		}

		public int nextInt() throws IOException {
			return Integer.parseInt(next());
		}

		public long nextLong() throws IOException {
			return Long.parseLong(next());
		}
	}
} public class Main {
	public static void main(String[] args) throws IOException {
		FastScanner in = new FastScanner(System.in);
		int n = in.nextInt();
		int m= in.nextInt();
		int [] a= new int[n];
		for(int i=0; i<m; i++){
			int b= in.nextInt()-1;
			int c= in.nextInt()-1;
			a[b]++;
			a[c]++;
		}
		for (int i = 0; i < a.length; i++) {
			System.out.println(a[i]);
		}
		
	}
	static class FastScanner {
		BufferedReader br;
		StringTokenizer st;

		public FastScanner(InputStream in) {
			br = new BufferedReader(new InputStreamReader(in));
			st = new StringTokenizer("");
		}

		public double nextDouble() throws NumberFormatException, IOException {
			return Double.parseDouble(next());
		}

		public String next() throws IOException {
			if (!st.hasMoreTokens()) {
				st = new StringTokenizer(br.readLine());
				return next();
			}
			return st.nextToken();
		}

		public int nextInt() throws IOException {
			return Integer.parseInt(next());
		}

		public long nextLong() throws IOException {
			return Long.parseLong(next());
		}
	}
} Main
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.util.Arrays;
import java.util.StringTokenizer;

public class Main {
	public static void main(String[] args) throws IOException {
		FastScanner in = new FastScanner(System.in);
		int n = in.nextInt();
		int m= in.nextInt();
		int [] a= new int[n];
		for(int i=0; i<m; i++){
			int b= in.nextInt()-1;
			int c= in.nextInt()-1;
			a[b]++;
			a[c]++;
		}
		for (int i = 0; i < a.length; i++) {
			System.out.println(a[i]);
		}
		
	}
	static class FastScanner {
		BufferedReader br;
		StringTokenizer st;

		public FastScanner(InputStream in) {
			br = new BufferedReader(new InputStreamReader(in));
			st = new StringTokenizer("");
		}

		public double nextDouble() throws NumberFormatException, IOException {
			return Double.parseDouble(next());
		}

		public String next() throws IOException {
			if (!st.hasMoreTokens()) {
				st = new StringTokenizer(br.readLine());
				return next();
			}
			return st.nextToken();
		}

		public int nextInt() throws IOException {
			return Integer.parseInt(next());
		}

		public long nextLong() throws IOException {
			return Long.parseLong(next());
		}
	}
}
