trimmed func Push, Pop; made a getCounter; normally wrote func main