Added method to find int length