Changed database_count from bash to php.
Changed interlinking to reflect this.