added numAccounts api route with support for {time:'...'}, more features to come later