added get_count arg to select to allow more complex select count(*) queries