Nombres repetidos dentro de una listview (determine how many times a name is duplicated as an item of a Listview

Estimados, de su ayuda....estoy tratando de recopilar informacion dentro de una listview para control de asistencia.

Tengo varios elementos, pero muchos de ellos son nombres de personas y estan repetidos y al final del mes quiero saber cuantas veces asistieron, por lo que quiero ver la forma de saber cuantas veces se repite un nombre.

Gracias por su ayuda

Several ways are discussed in this list of topics Search results for 'remove duplicates order:latest' - MIT App Inventor Community

es que no deseo eliminar los duplicados, ....caso contrario, necesito saber cuantas veces se duplica un dato de una listview

Start a dictionary with the names as keys, and the occurrence counts as their values, initially 0.

Loop through the list of names, and for each item add 1 to the dictionary value for that name.

After the loop ends, the dictionary will have all names' counts.

These Blocks determine how many repeat instances of an item are within a List (duplicate names) and ListView


They are based by algorithms by @gordonlu310

duplicate_counter.aia (3.1 KB)