Count Wei and Dj in the mask