added item count check related #22