Lectures on instanton counting