Unless you're a colorectal surgeon, there is no exact answer to the question of how many times a day is healthy to poop. The basic rule is that your bowel movements should be regular, but what a "regular" schedule means varies from person to person.
In general, it's best to poop in the morning after your body has worked overnight processing food, but you can go anytime of the day. You also want to aim for a stool that's long, cylinder-like, and fairly soft (not hard to push out).
Some factors that can affect pooping frequency include how much you drink and eat and whether or not you exercise. A diet low in fiber can lead to constipation, and certain medications like antidepressants can make you less likely to have a regular bowel movement. Other conditions, including irritable bowel syndrome and inflammatory bowel disease, such as Crohn's or ulcerative colitis, can also have an impact on your poop frequency.
But you should always consult your doctor if you notice an unexplained change in your bowel patterns, such as diarrhea, pain or a feeling of incomplete bowel movements, as these could be symptoms of a more serious health issue. The best way to avoid constipation, however, is to eat plenty of fiber-rich foods such as whole grains, vegetables and fruit, as well as keeping your hydration levels up, especially in the form of water. And don't spend too long on the toilet, which can put pressure on blood vessels around your anus and cause hemorrhoids.