Adds documentation for count_slides