Fix count with gcc