Thanks for that. The inserted text to the upload script fixed the problem.
To test it, I uploaded an image which worked fine. But then when I deleted it the # photos counter still registered 1 photo for the category - even though there was no photo present. I tried using the Admin>Database>Scan Database tool to reset the photo # counter, but that didn't seem to help.
Any thoughts on why the photo count for the category didn't reset?
Edit: I think I solved the problem. After typing this message and going back to the board, the counter reset. Is there a time delay for a script to update the table?