Refactor parameter animationCount to animation for consistency