Actually counting the bookings in the sample app

Just like we discussed in the mailing list. Sorry for the delay.