N,M=list(map(int,input().split()))

li=[]

for i in range(M):

    a,b=list(map(int,input().split()))

    li.append(a)

    li.append(b)

ans=[0]*N

for j in range(1,N+1):

    cj=li.count(j)

    ans[j-1]=cj

for k in range(N):

    print((ans[k]))

N,M=list(map(int,input().split()))

li=[0]*N

for i in range(M):

    a,b=list(map(int,input().split()))

    li[a-1]+=1

    li[b-1]+=1

for j in range(N):

    print((li[j]))

N, M = list(map(int, input().split()))
li = []
for i in range(M):
    a, b = list(map(int, input().split()))
    li.append(a)
    li.append(b)
ans = [0] * N
for j in range(1, N + 1):
    cj = li.count(j)
    ans[j - 1] = cj
for k in range(N):
    print((ans[k]))

N, M = list(map(int, input().split()))
li = [0] * N
for i in range(M):
    a, b = list(map(int, input().split()))
    li[a - 1] += 1
    li[b - 1] += 1
for j in range(N):
    print((li[j]))

-li = [] +li = [0] * N -    li.append(a) -    li.append(b) -ans = [0] * N -for j in range(1, N + 1): -    cj = li.count(j) -    ans[j - 1] = cj -for k in range(N): -    print((ans[k])) +    li[a - 1] += 1 +    li[b - 1] += 1 +for j in range(N): +    print((li[j]))