How many number of outs in cricket?

Every cricket match can have only a maximum number of outs or wickets. If it is a 20-20 or One day international there can be a maximum of 20 outs in a match. In case of a test match there can be a maximum of 40 outs in one match.