There's a number of problems here.
$count and $$count are two different variables.
Set field [Calculation::_LocationID = Cases::_LocationID]
is missing the first parameter. Set field should have the format: Set Field [table::FieldtoReceivevalue ; Expressiontocalculatevalue]
This step doesn't really make sense either: Exit Loop If [$count = $count + 1]
It will always evaluate as true and thus exit in all cases (which is why your loop exits the first time around in all cases.anytime you have something like $count = $count, you are comparing the value to the left of the = with the value to the right. This will always be true (numeric value 1) and then you add one to it to produce the value, 2. In an If or exit loop If step, any expression that evaluates to a value other than 0 will evaluate as true.
Perhaps you should describe in more detail, what this script is supposed to do.