ListView에서 itemCount를 임의로 부여할 때 리스트의 길이를 넘는다면 리스트의 길이 값으로 재설정함
int getItemCountSafety(int count) { return length < count ? length : count; }