is it needed to call countPending here when pendingCounter is kept updated with the number of pending posts?