https://esgsw.it/html/answered-javascript-a-function-that-counts-object-from-an-array-into-a-table/