How do you check to see how many of a specific value are in a table

Just have a area where all the values of each slot are and have it check if any of the values are equal to 0. If not then all of the slots are filled up. Or you can check if each slot has a item by saving whatever the items name is. Sorry for not replying, you’ve probably figured out a solution that works for you by now.