add badges to tabs

add badges to tabs that display number of documents and purchase orders.
connect documents badge to docs.length in controller and pages