Added second entry point for getting names of objects rather than simply count