counting positive trajectories and find neighbors

added count of positive trajectories out of total trajectories to
calculate the initial probability.
Also made the function to measure the neighbors of the input zones