# title says it all, just need to write something that makes sure there's only one item inside for it to continue the code.
# Once your ticket has been resolved, please close it with </ticket close:1054771505520717835> command!
# assuming you have your blockentity, you should be able to access its persistentData field and subsequently access its size() method; myBlockEntity.persistentData.size()