I would like to create a function in three variables N,l,a using the formula:
where the outer || in the numerator is the function that counts the elements in