Use list utility function COUNT-LIST rather than COUNT.