Added count method to bag