detect how much items are in a stack on the ground

I am making a fuel system where you drop coal in a block to power it but I cannot tell if you drop a stack or 1 coal, thank you.

Continue to help post