Fixed the bug where posts would be counted every time they were updated.