fixed orders count checking to select get method correctly