Updating a counter - help automating this

Updating a counter - help automating this

When a field in our custom module Patients is updated with a certain value, I need a separate field (a counter) increased by 1. I haven't automated this yet. I figure this is fairly easy to do. Can someone walk me through it?