added getNumberOfSingles method to PersonList