first version of countDecortor