What does `EntityManager.getSingleResult()` return for a COUNT query?

So.. what is the precise runtime type of foo?

```
Object foo = em.createQuery("SELECT COUNT(t) FROM com.company.Thing t WHERE prop = :param")
       .setParameter("param", value).getSingleResult();

```