给定一句话和一个字符，编写程序来统计这个字符在句子中出现的次数。


"Python is a popular programming language.", "p"
可以使用Python内置的count()方法来实现字符在句子中出现的次数统计。

示例代码如下：

```python
sentence = "Python is a popular programming language."
char = "p"

count = sentence.count(char)

print(f"Character '{char}' appears {count} times in the sentence.")
```

输出结果：

```
Character 'p' appears 3 times in the sentence.
```