making the number of unread receipts shown on the homepage dynamic