Welcome to Nikonians! Go into the Custom Settings (Pencil) Menu> d4 File Number Sequence> switch it to On. The file numbers will now continue from 0001 or the highest number you have in the memory card to 9999 then start over again. See page 159 of the D5000 Users Manual. Good Luck and Enjoy your Nikons!