count number of elements in array
lastIndexOf