Let $B$ be a binary search tree (BST) with eight nodes filled with the following set of eight integer keys $A=\{10,2,5,3,20,15,9,22\}$. The order in which these keys were inserted to create $B$ is not known. However, it is known that once the BST is created, $(8 \times 9) / 2=36$ comparisons are required to verify if all eight keys of $A$ are present in $B$.
How many leaf nodes are present in B?