Removed some debug messages
Added count functions for lists