Sets $A$ and $B$, shown in the Venn diagram, are such that the total number of elements in set $A$ is twice the total number of elements in set $B$. Altogether, there are $9$ elements in the union of $A$ and $B$, and their intersection has $3$ elements. What is the total number of elements in set $A$?