#!/bin/zsh

I=0

while [[ $[i < 10000] -eq 1 ]]; do
  echo $[i++];
  sleep .001
done
