I want to make a can counter

Weight ? Passing a sensor ?