Not sure which Cosmos you have grown, but I assume one of the taller varieties?
Cosmos bipinnatus Sonata (various colours and also a mix is available) is a superb choice for a rather small, well branching, bushy plant. However too much fertilizer will give an oversized plant with fewer flowers, really it seems to need almost no fertilizer at all.