An Efficient Parallel and Distributed Algorithm for Counting Frequent Sets