Hi Karin,
It has been suggested you try something similar to the following to get the total number of Financial Impacts (I believe this would include all financial impacts, including Recoveries and possibly Allocations):
<set name="TEMP.finImpactsNumber" value="size(getObjectProperty(businessObject ,'LinkedFinancialImpacts'))" />