<awangdev>788. Rotated Digits_1.java
private int[] freq(int num) {

        int[] count = new int[10];
        while (num != 0) {
            count[num%10]++;
            num /= 10;
        }
        return count;
    }
private int [ ] sample_funcname ( int var_0 ) {
  int [ ] var_2 = new int [ 10 ] ;
  while ( var_0 != 0 ) {
    var_2 [ var_0 % 10 ] ++ ;
    var_0 /= 10 ;
  }
  return var_2 ;
}
