API:GetAuctionHistoryItemNums

Returns how many history entries the selected item (in auction house) has. GetAuctionHistoryItemNums

Returns
a Number

Example
/script DEFAULT_CHAT_FRAME:AddMessage(GetAuctionHistoryItemNums);