Positive karma!!!
Your thanks will likely reinforce their positive behaviors, too!
I do understand how moving to a more populated area might make you feel more vulnerable. I hope any future interactions with the police will be as pleasant for you!
I tend to step up and thank police officers for their service, just as I do a military vet. Some seem surprised, yet pleasantly so.
Thanks so much for sharing!

WC