Add cardinality of the function to the workflows