Passing observations of varying size to a likelihood function

Thanks very much - exactly what I’m after.