I get 20 (including lactose) considering pyranose forms only.
If I consider two disaccharides different if they vary only by the configuration at the non-glycosidic anomeric centre, which would not be correct to do, I get 36. If I forgot to remove degenerate pairs from that list, which would not be correct to do, I would have 40 (which matches the answer, that may be coincidence though).
If I consider combinations of pyranose and furanose forms I get 80.
So I'm stumped as well... I can only get 40 by making two mistakes.
If it doesn't get solved on here with someone else's help, please post the solution when you have it.