how to calculate support of a itemset : ask: Implement function support to calculate the support of a given rule on a set of transactions. The funciton has signiture

def support(rule, transactions):
    pass
where

rule is a list of two sets, represneting the  X→YX→Y  rule
transactions is a list of transactions

