Pausing macro for user to select elements

I would like to have a command button on a user form.  Once the user clicks the button I want them to select some entities.  For now I would like to count the number of entities they have selected.  What code pauses the macro or stops the macro to allow the user to select the entities?

Christmas May