numbered list

In my Indesign document I have a page of images that are numbered and would like to have a list of captions with corresponding numbers. Some of the images will share the same captions so I'd like to have two to three numbers listed with commas separating them I'd like the numbers to be right justified :