Count and write the correct number