Below code gives me exact count of items I pass but if the items are less than the specified count, I dont get that.
I want only the specified count of items(MaxResul