Renamed method 'length' to 'getLength'.

'length' is used for a length property.