added wcount main