> Yeah, it's a bit confusing - maxCount is an Integer, but getMaxCount() returns an int.

I think you may have seen the old version of my comment ;-) I was asking not about null, but about possible negative values here. What if someone sets this to -10?