If we are talking about humans, then the male diploid number is 44(XY). Human sperm are either 22(X) or 22(Y).
However, in your question, you specify that the male is 46(XY). In this case (which is possible, since creatures other than humans have different N numbers), the haploid sperm will be either 23(X) or 23(Y).
In either case, you figure this out by taking whatever the diploid cell has for chromosomes and dividing it in half. If you are simply given a number in the problem, then divide it by two. In this question, the sex chromosomes are specified separately from the autosomes (the rest of the chromosomes), but this doesn't change the calculation. Take the diploid number and divide by two, then assign one sex chromosome, and that is the haploid condition. In animals with XY gender determination, half of the sperm will carry and X chromosome and half will carry a Y.
A male diploid cell is 46XY. This represents the diploid number of chromosomes found in all somatic or body cells. The chromosomes are located in the nucleus of each cell. When a sperm cell is manufactured in the testes, via the process of meiotic cell division or gametogenesis, the end result is a haploid gamete or sex cell with 23 chromosomes. This represents one set of chromosomes which is the male's contribution to future offspring. There will be 22 autosomes and one sex chromsome in the sperm, either an X or a Y chromosome. The egg will provide the other 22 autosomes and an X chromosome to the offspring. This will result in the restoration of the diploid amount of 46 chromosomes once again after fertilization occurs.