Instanton counting, Macdonald function and the moduli space of D-branes