combining init with value promise
getting counter after initialization