public static void sort(int[] array) {
    printArray(array);
    int max = 12;
    int index = 0;
    int[] count = new int[max + 1];
    for (int i = 0; i < array.length; i++) {
  	count[i]++;
	}
    for (int i = 0; i < count.length; i++) {
		for (int j = 0; j < count[i]; j++) {
			array[index++] = i;
		}
	}
    printArray(array);
  }