How can I count the number of dropbox being filled?