sun: finally add count and range