import java.util.*;
public class Main {
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    
    int n = sc.nextInt();
    int m = sc.nextInt();
    int r[] = new int[m*2];
    int cnt[] = new int[n];
    
    
    //入力値を配列に格納
    for(int i = 0; i < m*2; ++i){
      r[i] = sc.nextInt();
    }

    for(int i = 1; i<=n; ++i){

      for(int j = 0; j < m*2 ; ++j){
        if(i==r[j]){
          cnt[i-1] += 1;
        }
      
      }
      
      System.out.println(cnt[i-1]);       
    }
  }
} import java.util.*; util.* java public class Main {
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    
    int n = sc.nextInt();
    int m = sc.nextInt();
    int r[] = new int[m*2];
    int cnt[] = new int[n];
    
    
    //入力値を配列に格納
    for(int i = 0; i < m*2; ++i){
      r[i] = sc.nextInt();
    }

    for(int i = 1; i<=n; ++i){

      for(int j = 0; j < m*2 ; ++j){
        if(i==r[j]){
          cnt[i-1] += 1;
        }
      
      }
      
      System.out.println(cnt[i-1]);       
    }
  }
} Main public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    
    int n = sc.nextInt();
    int m = sc.nextInt();
    int r[] = new int[m*2];
    int cnt[] = new int[n];
    
    
    //入力値を配列に格納
    for(int i = 0; i < m*2; ++i){
      r[i] = sc.nextInt();
    }

    for(int i = 1; i<=n; ++i){

      for(int j = 0; j < m*2 ; ++j){
        if(i==r[j]){
          cnt[i-1] += 1;
        }
      
      }
      
      System.out.println(cnt[i-1]);       
    }
  } main {
    Scanner sc = new Scanner(System.in);
    
    int n = sc.nextInt();
    int m = sc.nextInt();
    int r[] = new int[m*2];
    int cnt[] = new int[n];
    
    
    //入力値を配列に格納
    for(int i = 0; i < m*2; ++i){
      r[i] = sc.nextInt();
    }

    for(int i = 1; i<=n; ++i){

      for(int j = 0; j < m*2 ; ++j){
        if(i==r[j]){
          cnt[i-1] += 1;
        }
      
      }
      
      System.out.println(cnt[i-1]);       
    }
  } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int n = sc.nextInt(); n sc.nextInt() sc.nextInt sc int m = sc.nextInt(); m sc.nextInt() sc.nextInt sc int r[] = new int[m*2]; r new int[m*2] m*2 m 2 int cnt[] = new int[n]; cnt new int[n] n for(int i = 0; i < m*2; ++i){
      r[i] = sc.nextInt();
    } int i = 0; int i = 0; i 0 i < m*2 i m*2 m 2 ++i ++i i {
      r[i] = sc.nextInt();
    } {
      r[i] = sc.nextInt();
    } r[i] = sc.nextInt() r[i] r i sc.nextInt() sc.nextInt sc for(int i = 1; i<=n; ++i){

      for(int j = 0; j < m*2 ; ++j){
        if(i==r[j]){
          cnt[i-1] += 1;
        }
      
      }
      
      System.out.println(cnt[i-1]);       
    } int i = 1; int i = 1; i 1 i<=n i n ++i ++i i {

      for(int j = 0; j < m*2 ; ++j){
        if(i==r[j]){
          cnt[i-1] += 1;
        }
      
      }
      
      System.out.println(cnt[i-1]);       
    } {

      for(int j = 0; j < m*2 ; ++j){
        if(i==r[j]){
          cnt[i-1] += 1;
        }
      
      }
      
      System.out.println(cnt[i-1]);       
    } for(int j = 0; j < m*2 ; ++j){
        if(i==r[j]){
          cnt[i-1] += 1;
        }
      
      } int j = 0; int j = 0; j 0 j < m*2 j m*2 m 2 ++j ++j j {
        if(i==r[j]){
          cnt[i-1] += 1;
        }
      
      } {
        if(i==r[j]){
          cnt[i-1] += 1;
        }
      
      } if(i==r[j]){
          cnt[i-1] += 1;
        } i==r[j] i r[j] r j {
          cnt[i-1] += 1;
        } cnt[i-1] += 1 cnt[i-1] cnt i-1 i 1 1 System.out.println(cnt[i-1]) System.out.println System.out System System.out cnt[i-1] cnt i-1 i 1 String[] args args public class Main {
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    
    int n = sc.nextInt();
    int m = sc.nextInt();
    int r[] = new int[m*2];
    int cnt[] = new int[n];
    
    
    //入力値を配列に格納
    for(int i = 0; i < m*2; ++i){
      r[i] = sc.nextInt();
    }

    for(int i = 1; i<=n; ++i){

      for(int j = 0; j < m*2 ; ++j){
        if(i==r[j]){
          cnt[i-1] += 1;
        }
      
      }
      
      System.out.println(cnt[i-1]);       
    }
  }
} public class Main {
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    
    int n = sc.nextInt();
    int m = sc.nextInt();
    int r[] = new int[m*2];
    int cnt[] = new int[n];
    
    
    //入力値を配列に格納
    for(int i = 0; i < m*2; ++i){
      r[i] = sc.nextInt();
    }

    for(int i = 1; i<=n; ++i){

      for(int j = 0; j < m*2 ; ++j){
        if(i==r[j]){
          cnt[i-1] += 1;
        }
      
      }
      
      System.out.println(cnt[i-1]);       
    }
  }
} Main
import java.util.*;
public class Main {
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    
    int n = sc.nextInt();
    int m = sc.nextInt();
    int r[] = new int[m*2];
    int cnt[] = new int[n];
    
    
    //入力値を配列に格納
    for(int i = 0; i < m*2; ++i){
      r[i] = sc.nextInt();
    }

    for(int i = 1; i<=n; ++i){

      for(int j = 0; j < m*2 ; ++j){
        if(i==r[j]){
          cnt[i-1] += 1;
        }
      
      }
      
      System.out.println(cnt[i-1]);       
    }
  }
}