select count(*) from sales where qtysold is not null;
