FIX: wrong arguments to function atom_count()