Fixed collection size calculation in presence of filters

The 'size' element of 'collection' sub-object in collection response
should be the number of elements matching given criteria, so it
should be calculated after applying filters.

Change-Id: I2dc3066a817e96080bd16425ecedad2cdc43b8a6