I need suggestions

HI all

ok…i hav 10objects, which doing drag n drop.using if else statements.

i need to put a next button after i hav drag all the 10objects.

Hav any suggestion on how i shld put a counter to count every object doin the drag and drop till it reaches 10 and the next button appear?