For Java I would use itemCount
and MAX_ITEM_COUNT
. For Ruby, item_count
and MAX_ITEM_COUNT
. I tend not to use names that can be interpreted wrongly (numItems
may be a shortcut for numerate_items
or number_of_items
), hence my choice. Whatever you decide, use it constantly.