Getting number of floors per mass

Hi, is it possible to get the number of floors per mass:
till now i have two lists; one with all the floors and corresponding masses and a list with all the masses from a model


HI, found the solution myself with a Clockwork node list.countoccurencies which i placed after massfloor.mass in the script above.