function add_flow modified to support OFPFF_RESET_COUNTS flag.