UPDATE: localize drop count function