Simple, self-explanatory code snippets.
find /path/to/directory -maxdepth 1 -type f | wc -l
for f in * ; do mv -- "$f" "01. $f" ; done