count_media

added filtering to count_photos and changed its name to count_media