Updated.
Fixed obtaining count of entries by entity wrapper.