A study of pion fluctuation and correlation in heavy-ion collisions