Fixed get_post pagination and added get_post_count
merge