On the Power of the Weisfeiler-Leman Test for Graph Motif Parameters