Independence And Counting Problems In Combinatorics And Number Theory