Similar Items: Finite-Horizon First-Order Rank Profiles of Regular Languages