Include 'totalElements' field in PaginatedResult

Summary:
- Added a field to contain the 'totalElements' constructor parameter
and exposed it with a getter.
- Also fixed .arclint (thanks to jpcivile)

Test Plan: Check if 'totalelements' value matches 'getCount' value for the same Criteria.

Reviewers: jmsotuyo

Reviewed By: jmsotuyo

Differential Revision: http://ph.monits.com/D5227