Counting Solutions to Conjunctive Queries: Structural and Hybrid Tractability