How many days per year do I have to stay in Taiwan?

There are no requirements. However, you must stay for a certain number of days to qualify for benefits such as: tax resident treatment and a pathway to permanent residence.