In my Costa Rica adventuring I’ve encountered a lot of dogs. While they are free ranging, they aren’t strays. Most of them sport collars or bandannas of some sort and I have yet to see any that look unhealthy. Many Ticos (the term locals call themselves) have at least one. I was told that the country recently increased the penalty for anyone caught intentionally harming or abusing animals. Sounds like a good policy to me!
The dogs roam the streets and beaches, often coming over for quick pet, game of fetch, or sometimes even accompanying me on my long beach strolls. They will also join you at the soda (local term for small diner), in hopes of scoring a few yummy morsels.