+
+ echo "$count"
+}
+
+for f in "${fish[@]}"; do
+ ((buckets[$f]+=1))
+done
+
+for (( d=1; d<=$iter_2; d++ )); do
+ orig_zeros=${buckets[0]}
+ for (( i=1; i<=8; i++ )); do
+ temp=${buckets[$i]}
+ ((buckets[$((i-1))]+=$temp)) || true
+ buckets[$i]=0
+ done
+ ((buckets[8]+=$orig_zeros)) || true
+ ((buckets[6]+=$orig_zeros)) || true
+ ((buckets[0]-=$orig_zeros)) || buckets[0]=0
+
+ [ $d -eq $iter_1 ] && echo "After $iter_1 days there are $(get_count) fish"