fix to query.count to use mapper-defined primary key cols instead of those of the table
fix to query.count to use mapper-defined primary key cols instead of those of the table

davidjb/sqlalchemy,bootandy/sqlalchemy,wujuguang/sqlalchemy,Cito/sqlalchemy,ThiefMaster/sqlalchemy,graingert/sqlalchemy,EvaSDK/sqlalchemy,wujuguang/sqlalchemy,sqlalchemy/sqlalchemy,j5int/sqlalchemy,robin900/sqlalchemy,robin900/sqlalchemy,monetate/sqlalchemy,brianv0/sqlalchemy,276361270/sqlalchemy,bdupharm/sqlalchemy,zzzeek/sqlalchemy,WinterNis/sqlalchemy,alex/sqlalchemy,davidfraser/sqlalchemy,itkovian/sqlalchemy,dstufft/sqlalchemy,WinterNis/sqlalchemy,EvaSDK/sqlalchemy,Akrog/sqlalchemy,j5int/sqlalchemy,halfcrazy/sqlalchemy,olemis/sqlalchemy,olemis/sqlalchemy,bdupharm/sqlalchemy,monetate/sqlalchemy,alex/sqlalchemy,davidfraser/sqlalchemy,wfxiang08/sqlalchemy,alex/sqlalchemy,elelianghh/sqlalchemy,inspirehep/sqlalchemy,brianv0/sqlalchemy,inspirehep/sqlalchemy,pdufour/sqlalchemy,ThiefMaster/sqlalchemy,epa/sqlalchemy,halfcrazy/sqlalchemy,wfxiang08/sqlalchemy,Cito/sqlalchemy,itkovian/sqlalchemy,epa/sqlalchemy,Cito/sqlalchemy,bootandy/sqlalchemy,davidjb/sqlalchemy,hsum/sqlalchemy,elelianghh/sqlalchemy,graingert/sqlalchemy,sandan/sqlalchemy,dstufft/sqlalchemy,276361270/sqlalchemy,Akrog/sqlalchemy,pdufour/sqlalchemy,hsum/sqlalchemy,sandan/sqlalchemy