Created setter and getter for the count

created a setter and getter for count.
getter is for testing purposes.
tested that the value was set and i could print it out