#include <iostream>
using namespace std;
int C[60] = {0},a,b,N,M;

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