you could proceed as follows:
- add a tableFile to your frame
- activate the row index and add all Part names into the row index column
- format the column 1 as integer
Then you can use the entrance control of the drain to count the parts
You need to delete the content of the tableFile e.g. in the init-method to start with a empty table.
freelance simulation specialist