Got the second "counting" query working. Now just to fix small bug on
trajectory calculation.
found conceptual error in pre-likelihood-calculation summation.