Add total to PaginatedRepresentation, fix #143

cc @MrHash