return book_count after register and login