Counting and Sampling from Substructures Using Linear Algebraic Queries. | AMiner