A struct groups fields into one box. A method is a function attached to that box.
A struct is a form with labelled blanks (Name, Age, ...). A method is an action you can perform on a filled-in form, like form.Submit().
The key question for every method is: does it get the form, or a photocopy? A value receiver (c Counter) gets a photocopy, so changes vanish. A pointer receiver (c *Counter) gets the address of the real form, so changes stick.
c in main.for _, c := range items { c.n++ } modifies the loop copy, not the slice element. Use items[i] or a slice of pointers.sync.Mutex copies the lock too. Pass a pointer.