var.length function

Extract length