Added counter to keep track of number of stars