@Valentina108 This is a very common question and the answer is always the same. Your property will appear in searches for 1, 2, 3 etc...but in those searches it will be competing against a much larger number of listings, and will most likely be pushed further back in the search results by the large volume of listings that are only appropriate for smaller parties.
If you want your listing to have greater appeal to smaller groups, you can set a competitive base price that is the equivalent of a room that suits 2 people, and charge an Extra Person Fee for each additional guest up to 8. The risk you take in doing so is that large groups will book as a party of 2 and sneak the other guests in unpaid.