sourceCount code

I'll likely have an update again on this later this week. queryForCount has a lot more I can do for performance gains.