Apply ajax to count post feature