#include <bits/stdc++.h>
using namespace std;

int main(){
int n,m,temp;
  cin>>n>>m;
  vector<int> cities(n);
  for(int i=0;i<m*2;i++){
    cin>>temp;
    cities.at(temp-1)++;
  }
  for(int i=0;i<n;i++){
    cout<<cities.at(i)<<endl;
  }
}

