b,c;main(t){for(;t=~getchar();b++)c+=2!=~t/64;printf("%d %d",c,b);}
(~R∊R∘.×R)/R←1↓ιR
17 27
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!