does what it says on the tin

declare -i i
i=0
for file in *
  do
    mv "$file" "$i-$file"
    let "i++"
  done