Move slideCount onto the base function.