#include <iostream>
using namespace std;

int main() {
	int N, M, a, b, c[50] = { 0 };
	cin >> N >> M;
	for (int i = 0; i < M; i++) {
		cin >> a >> b;
		c[a-1]++;
		c[b-1]++;
	}
	for (int i = 0; i < N; i++) {
		cout << c[i] << endl;
	}
}
