Passing an atom to count() was crashing