Added total count attribute to API lists (closes #47)