@echo off
setlocal enabledelayedexpansion
set /a count=1
for /f "tokens=*" %%a in ('dir /b /od *.jpg,*.jpeg,*.png') do (
ren "%%a" "!count!%%~xa"
set /a count+=1
)
With help from internets
If you put echo in front of the rename line (ren), it command prompt should give you a preview of what it will do. Having already numerically named files can screw it up because it will not be able to overwrite them.
Edit: It will rename them in the order they are currently in within your folder. I'm pretty sure.
Edit edit: If you need to get around the fact that some files are already numerically named, start the count variable as a high number, run the script, change it back to 1, run it again.