sql 分页统计总数时查询性能问题

sqlserver count统计子查询总数时的性能和查询子查的字段多少有关吗?
比如下面两个查询统计
1、
select count(*) from
( select id from CompanyInfo where companyname like '%A%') t

2、
select count(*) from
( select * from CompanyInfo where companyname like '%A%') t

查询性能问题上有什么影响吗?

第一句查询id字段,第二句查询所有字段,消耗资源比第一句大,最后结果是查计数,你觉得呢?