added the total collection count from the database to the 4th param of the return statement for clarification, this is only needed on the first run.
added new sample using ASP.NET Web.API