I want to make a can counter

Like, beverage cans as in a soda machine? Do they move down a chute or on a path or something? A small microswitch
switch
like this could do it, if so.