lw function

Abbreviation for length(which(x))