paging: Provide the number of pending requests

Address the FIXME and take code from the on-waves/bsc-master
branch. This will count the number of requests.
diff --git a/openbsc/src/libbsc/paging.c b/openbsc/src/libbsc/paging.c
index c618074..a336144 100644
--- a/openbsc/src/libbsc/paging.c
+++ b/openbsc/src/libbsc/paging.c
@@ -403,3 +403,16 @@
 	bts->paging.available_slots = free_slots;
 	paging_schedule_if_needed(&bts->paging);
 }
+
+unsigned int paging_pending_requests_nr(struct gsm_bts *bts)
+{
+	unsigned int requests = 0;
+	struct gsm_paging_request *req;
+
+	paging_init_if_needed(bts);
+
+	llist_for_each_entry(req, &bts->paging.pending_requests, entry)
+		++requests;
+
+	return requests;
+}