how to apply re counting