Does buying and selling count as one transaction? Or does buying once and selling also count as one?