Yeah, it's a bit confusing - maxCount is an Integer, but getMaxCount() returns an int.