How many distinct names are associated with all the photos?
select count(distinct name) from photos