It looks like counter doesn't need to be a list here, does it?