In JavaScript, <array>.length returns the total number of item.

Example)

var fruits = ["Banana", "Orange", "Apple", "Mango"];
fruits.length;