CBQE-0: updated offline_upgrade code to pass expected_rows in query equal to the number of items in the bucket

Change-Id: I50db9d284906e724c21d76acf24d80e11bc90922
Reviewed-on: http://review.couchbase.org/32999
Reviewed-by: Sangharsh Agarwal <sangharsh.agarwal@globallogic.com>
Tested-by: Sangharsh Agarwal <sangharsh.agarwal@globallogic.com>