(feat) add countPending function
(feat) change pending functions to work with front-end
(feat) fix speling in pending.js
Merge pull request #13 from Neco-Murphy/feat/showPendingInHome

(feat) send count of pending contents