Getting the total records while using pagination | Hacker News Reader