Solution for CountDiv