API:GetNumQuestBookButton

This function returns 6. Use GetNumQuestBookButton_QuestBook instead.

Lines 423 through 427 of questbook.lua (interface.fdb), function GetNumQuestBookButton

return 6;

end