ncompositions function

Number of compositions