A mitzvah that has both negative and positive components is counted as two—one Positive Commandment and one Negative Commandment.
E.g., we are commanded to rest on Shabbat and desist from work on the Shabbat. We are commanded to "afflict" ourselves on Yom Kippur and we are commanded not to eat on this holy day. Though a transgression of one is also a transgression of the other – if you eat on Yom Kippur you have not afflicted yourself; if you work on Shabbat you have not rested – nevertheless these are considered two independent mitzvot.
