Use length not deprecated size()

As per @edds feedback.