Change CountAlgoritm