adding html counter to array.html