Lab:Using Cursor like Stages

Hi…I am able to filter records which match one or more favorites in cast field and able to calculate total count of those.But we want number of favorites in each movie, so i am not able to count number of favorites in each cast field…Please help me out to solve this issue?