Sorry for being nooby but I can't find that line in amount.scar
SCAR Code:function CountItemsBmp(area: string; bmp, tol: Integer): Integer;
var
coords: TPointArray;
begin
coords := ItemCoordsBmp(area, bmp, tol);
Result := GetArrayLength(coords);
end;
lines 390-396 in amount.scar I have rev 20

