For any integer h⩾2, a set A of integers is called a Bh‐set if all sums a1+⋯+ah, with a1,…,ah∈A and a1⩽⋯⩽ah, are distinct. We obtain essentially sharp asymptotic bounds for the number of Bh‐sets of a given cardinality that are contained in the interval {1,⋯,n}. As a consequence of these bounds, we determine, for any integer m⩽n, the cardinality of the largest Bh‐set contained in a typical m‐element subset of {1,…,n}.