Solved CountDiv in C