changes to the applicatio needed to count number of shares