A researcher is interested in whether people are more likely…

A researcher is interested in whether people are more likely or less likely to help someone in distress when others are present. Some subjects were tested when they alone were witness to someone in distress, while others were tested when many people were present. The researcher discovered that witnesses were much more likely to help when they alone witnessed the person in distress. What research method was used?