SELECT COUNT(*) FROM (
    SELECT
        bedp.BEDARFNR,
        bedp.BEDP_SEQUENZ,
        bedp.BEDP_TITELNR,
        bedp.BEDP_MAN,
        bedp.BEDP_MENGE_BEDARF_VM,
        t_info.MELDENUMMER,
        t_info.VERLAGSNR,
        t_info.MENGE_VORMERKER,
        t_info.MANDFUEHR
    FROM EXT_BEDPBED bedp
    LEFT JOIN EXT_TITEL_INFO t_info
        ON bedp.BEDP_TITELNR = t_info.TI_NUMMER
);

SELECT * FROM EXT_TITEL_INFO t_info WHERE t_info.TI_NUMMER = 2787037;