Add Cast to the result of transformation from Count.
Modify the literal value of the result of transformation from Sum to long value.