do shell script to increment the file name

Hi All,

In applescript shell script how to increment the filename with 1,2 etc.,

For Ex: filename_1, filename_2, filename_3