public static async Task <int> CountAccountsByCodeHashAsync(this ITonClient client, string tvc)
        {
            var hash = await client.GetCodeHashFromTvcAsync(tvc);

            var result = await client.Net.QueryCollectionAsync(new ParamsOfQueryCollection
            {
                Collection = "accounts",
                Filter     = new
                {
                    code_hash = new
                    {
                        eq = hash
                    }
                }.ToJson(),
                Result = "id"
            });

            return(result.Result.Length);
        }