Counting the number of homotopy associative multiplications on certain H-spaces