Statistics on magnetic properties of Co compounds: A database-driven method for discovering Co-based ferromagnets