Update .size() to .length

.size() replaced by .length as .size() is outdated