count and getlogin_byidx f() added