#import <stdio.h>
int main(){
    int x[100] = {0};
    int n,m;
    scanf("%d %d",&n,&m);
    for (int i=0;i<m;i++) {
        int a,b;
        scanf("%d %d",&a,&b);
        x[a]++;
        x[b]++;
    }
    for(int i=1;i<=n;i++){
        printf("%d\n",x[i]);
    }
}
