Changed the way that count is parsed by the login handler