🎨 Replace image count comparator with Kotlin version