Json count implemented