#include <bits/stdc++.h>
using namespace std;
int s[50];
int main()
{
  int n, m;
  cin >> n >> m;
  for (int i = 0;i<m;i++){
    int a, b;
    cin >> a >> b;
    s[a]++, s[b]++;
  }
  for (int i = 0; i++ < n;)
    cout << s[i] << endl;
}

